diff options
author | Vignesh Venkatasubramanian <vigneshv@google.com> | 2013-02-05 12:10:21 -0800 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-02-06 17:53:47 +0100 |
commit | 579c4add6334f41fb12ae71e3cc992e6fde56f06 (patch) | |
tree | 368b0711ff96b9cbfb891ef57736cf1cc524c042 /libavformat | |
parent | 78dc4cb26d5a4070a719c085a9d35451711b0b38 (diff) | |
download | ffmpeg-579c4add6334f41fb12ae71e3cc992e6fde56f06.tar.gz |
Fate test to print side_data crc if present
Modified the fate test crc generator to print the side_data's
crc if side_data is present.
Signed-off-by: Vignesh Venkatasubramanian <vigneshv@google.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/framecrcenc.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libavformat/framecrcenc.c b/libavformat/framecrcenc.c index 8a6974891e..eddcabe217 100644 --- a/libavformat/framecrcenc.c +++ b/libavformat/framecrcenc.c @@ -33,8 +33,13 @@ static int framecrc_write_packet(struct AVFormatContext *s, AVPacket *pkt) pkt->stream_index, pkt->dts, pkt->pts, pkt->duration, pkt->size, crc); if (pkt->flags != AV_PKT_FLAG_KEY) av_strlcatf(buf, sizeof(buf), ", F=0x%0X", pkt->flags); - if (pkt->side_data_elems) + if (pkt->side_data_elems) { + uint32_t side_data_crc = av_adler32_update(0, + pkt->side_data->data, + pkt->side_data->size); av_strlcatf(buf, sizeof(buf), ", S=%d", pkt->side_data_elems); + av_strlcatf(buf, sizeof(buf), ", 0x%08x", side_data_crc); + } av_strlcatf(buf, sizeof(buf), "\n"); avio_write(s->pb, buf, strlen(buf)); avio_flush(s->pb); |