| 55 | } |
| 56 | |
| 57 | static int compare_crc_in_array(uint32_t crc, int64_t pts) |
| 58 | { |
| 59 | int i; |
| 60 | for (i = 0; i < number_of_elements; i++) { |
| 61 | if (pts_array[i] == pts) { |
| 62 | if (crc_array[i] == crc) { |
| 63 | printf("Comparing 0x%08"PRIx32" %"PRId64" %d is OK\n", crc, pts, i); |
| 64 | return 0; |
| 65 | } |
| 66 | else { |
| 67 | av_log(NULL, AV_LOG_ERROR, "Incorrect crc of a frame after seeking\n"); |
| 68 | return -1; |
| 69 | } |
| 70 | } |
| 71 | } |
| 72 | av_log(NULL, AV_LOG_ERROR, "Incorrect pts of a frame after seeking\n"); |
| 73 | return -1; |
| 74 | } |
| 75 | |
| 76 | static int compute_crc_of_packets(AVFormatContext *fmt_ctx, int video_stream, |
| 77 | AVCodecContext *ctx, AVPacket *pkt, AVFrame *fr, |
no test coverage detected