Changeset 5170 for pjproject/trunk/pjmedia/src/test/codec_vectors.c
- Timestamp:
- Aug 25, 2015 8:45:46 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/test/codec_vectors.c
r5058 r5170 160 160 pos = 0; 161 161 for (;;) { 162 pj_size_t count ;162 pj_size_t count2; 163 163 164 count = fread(in_frame.buf, encoded_frame_len, 1, fref);165 if (count != 1)164 count2 = fread(in_frame.buf, encoded_frame_len, 1, fref); 165 if (count2 != 1) 166 166 break; 167 167 168 count = fread(out_frame.buf, encoded_frame_len, 1, output);169 if (count != 1)168 count2 = fread(out_frame.buf, encoded_frame_len, 1, output); 169 if (count2 != 1) 170 170 break; 171 171 … … 381 381 pjmedia_frame in_frame[2]; 382 382 pj_timestamp ts; 383 unsigned count ;383 unsigned count2; 384 384 pj_bool_t has_frame; 385 385 … … 402 402 403 403 if (has_frame) { 404 count = 2;404 count2 = 2; 405 405 if (pjmedia_codec_parse(codec, pkt, encoded_len, &ts, 406 &count , in_frame) != PJ_SUCCESS)406 &count2, in_frame) != PJ_SUCCESS) 407 407 { 408 408 rc = -100; … … 410 410 } 411 411 412 if (count != 1) {412 if (count2 != 1) { 413 413 rc = -110; 414 414 goto on_return; … … 460 460 pos = 0; 461 461 for (;;) { 462 pj_size_t count ;462 pj_size_t count2; 463 463 464 count = fread(pkt, samples_per_frame*2, 1, fref);465 if (count != 1)464 count2 = fread(pkt, samples_per_frame*2, 1, fref); 465 if (count2 != 1) 466 466 break; 467 467 468 count = fread(out_frame.buf, samples_per_frame*2, 1, output);469 if (count != 1)468 count2 = fread(out_frame.buf, samples_per_frame*2, 1, output); 469 if (count2 != 1) 470 470 break; 471 471
Note: See TracChangeset
for help on using the changeset viewer.