MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / compare_crc_in_array

Function compare_crc_in_array

tests/api/api-seek-test.c:57–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57static 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
76static int compute_crc_of_packets(AVFormatContext *fmt_ctx, int video_stream,
77 AVCodecContext *ctx, AVPacket *pkt, AVFrame *fr,

Callers 1

compute_crc_of_packetsFunction · 0.85

Calls 1

av_logFunction · 0.85

Tested by

no test coverage detected