Commit c69d479b authored by michael's avatar michael

Fix muxing rgb rawvideo in avi regression.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@23500 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 822d6ec4
......@@ -2654,6 +2654,10 @@ int av_write_header(AVFormatContext *s)
}
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
st->codec->codec_tag= 0;
}
if(st->codec->codec_tag){
if (!validate_codec_tag(s, st)) {
char tagbuf[32];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment