Browse Source

tests/api/api-seek-test: Fix use of uinitialized value

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n3.3
Michael Niedermayer 9 years ago
parent
commit
108db37586
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      tests/api/api-seek-test.c

+ 1
- 1
tests/api/api-seek-test.c View File

@@ -129,7 +129,7 @@ static int compute_crc_of_packets(AVFormatContext *fmt_ctx, int video_stream,
av_log(NULL, AV_LOG_ERROR, "Can't copy image to buffer\n");
return number_of_written_bytes;
}
if ((fr->pts > ts_end) && (!no_seeking))
if ((!no_seeking) && (fr->pts > ts_end))
break;
crc = av_adler32_update(0, (const uint8_t*)byte_buffer, number_of_written_bytes);
printf("%10"PRId64", 0x%08lx\n", fr->pts, crc);


Loading…
Cancel
Save