History

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

Michael Niedermayer committed 9 years ago

Commit 108db371 parent 9c1ccee1 file · +1 −1Browse files

Unified · Split

tests/api/api-seek-test.c+1−1
@@ -129,7 +129,7 @@ static int compute_crc_of_packets(AVFormatContext *fmt_ctx, int video_stream, · 128 unmodified lines
129 av_log(NULL, AV_LOG_ERROR, "Can't copy image to buffer\n");129 av_log(NULL, AV_LOG_ERROR, "Can't copy image to buffer\n");
130 return number_of_written_bytes;130 return number_of_written_bytes;
131 }131 }
132 if ((fr->pts > ts_end) && (!no_seeking))132 if ((!no_seeking) && (fr->pts > ts_end))
133 break;133 break;
134 crc = av_adler32_update(0, (const uint8_t*)byte_buffer, number_of_written_bytes);134 crc = av_adler32_update(0, (const uint8_t*)byte_buffer, number_of_written_bytes);
135 printf("%10"PRId64", 0x%08lx\n", fr->pts, crc);135 printf("%10"PRId64", 0x%08lx\n", fr->pts, crc);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t