mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
lavf: extend the avi raw hack to mov
Fixes ticket1194 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
30fc710556
commit
75a9479b39
@ -3173,8 +3173,11 @@ int avformat_write_header(AVFormatContext *s, AVDictionary **options)
|
||||
}
|
||||
|
||||
if(s->oformat->codec_tag){
|
||||
if(st->codec->codec_tag && st->codec->codec_id == CODEC_ID_RAWVIDEO && av_codec_get_tag(s->oformat->codec_tag, st->codec->codec_id) == 0 && !validate_codec_tag(s, st)){
|
||||
//the current rawvideo encoding system ends up setting the wrong codec_tag for avi, we override it here
|
||||
if( st->codec->codec_tag
|
||||
&& st->codec->codec_id == CODEC_ID_RAWVIDEO
|
||||
&& (av_codec_get_tag(s->oformat->codec_tag, st->codec->codec_id) == 0 || av_codec_get_tag(s->oformat->codec_tag, st->codec->codec_id) ==MKTAG('r', 'a', 'w', ' '))
|
||||
&& !validate_codec_tag(s, st)){
|
||||
//the current rawvideo encoding system ends up setting the wrong codec_tag for avi/mov, we override it here
|
||||
st->codec->codec_tag= 0;
|
||||
}
|
||||
if(st->codec->codec_tag){
|
||||
|
Loading…
x
Reference in New Issue
Block a user