mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avformat/framehash: add software version to framecrc/md5
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
c994b42830
commit
3ce7c62e1b
@ -23,6 +23,9 @@
|
||||
int ff_framehash_write_header(AVFormatContext *s)
|
||||
{
|
||||
int i;
|
||||
|
||||
if (s->nb_streams && !(s->streams[0]->codec->flags & CODEC_FLAG_BITEXACT))
|
||||
avio_printf(s->pb, "#software: %s\n", LIBAVFORMAT_IDENT);
|
||||
for (i = 0; i < s->nb_streams; i++) {
|
||||
AVStream *st = s->streams[i];
|
||||
avpriv_set_pts_info(st, 64, st->codec->time_base.num, st->codec->time_base.den);
|
||||
|
@ -90,11 +90,11 @@ ffmpeg(){
|
||||
}
|
||||
|
||||
framecrc(){
|
||||
ffmpeg "$@" -f framecrc -
|
||||
ffmpeg "$@" -flags +bitexact -f framecrc -
|
||||
}
|
||||
|
||||
framemd5(){
|
||||
ffmpeg "$@" -f framemd5 -
|
||||
ffmpeg "$@" -flags +bitexact -f framemd5 -
|
||||
}
|
||||
|
||||
crc(){
|
||||
|
@ -4,7 +4,7 @@ fate-twinvq: CMP = oneoff
|
||||
fate-twinvq: REF = $(SAMPLES)/vqf/achterba.pcm
|
||||
|
||||
FATE_VQF-$(CONFIG_VQF_DEMUXER) += fate-vqf-demux
|
||||
fate-vqf-demux: CMD = md5 -i $(TARGET_SAMPLES)/vqf/achterba.vqf -acodec copy -f framecrc
|
||||
fate-vqf-demux: CMD = md5 -i $(TARGET_SAMPLES)/vqf/achterba.vqf -acodec copy -flags bitexact -f framecrc
|
||||
|
||||
FATE_VQF += $(FATE_VQF-yes)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user