- if (got_frame) {
- number_of_written_bytes = av_image_copy_to_buffer(byte_buffer, byte_buffer_size,
- (const uint8_t* const *)fr->data, (const int*) fr->linesize,
- ctx->pix_fmt, ctx->width, ctx->height, 1);
- if (number_of_written_bytes < 0) {
- av_log(NULL, AV_LOG_ERROR, "Can't copy image to buffer\n");
- return number_of_written_bytes;
- }
- 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%08"PRIx32"\n", fr->pts, crc);
- if (no_seeking) {
- if (add_crc_to_array(crc, fr->pts) < 0)
- return -1;
- }
- else {
- if (compare_crc_in_array(crc, fr->pts) < 0)
- return -1;
- }
+
+ number_of_written_bytes = av_image_copy_to_buffer(byte_buffer, byte_buffer_size,
+ (const uint8_t* const *)fr->data, (const int*) fr->linesize,
+ ctx->pix_fmt, ctx->width, ctx->height, 1);
+ if (number_of_written_bytes < 0) {
+ av_log(NULL, AV_LOG_ERROR, "Can't copy image to buffer\n");
+ return number_of_written_bytes;
+ }
+ 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%08"PRIx32"\n", fr->pts, crc);
+ if (no_seeking) {
+ if (add_crc_to_array(crc, fr->pts) < 0)
+ return -1;
+ }
+ else {
+ if (compare_crc_in_array(crc, fr->pts) < 0)
+ return -1;