Mercurial > libavcodec.hg
diff mpegvideo.c @ 1458:40b69d238beb libavcodec
AVI stream header FCC / more reliable detection of old xvid files
author | michaelni |
---|---|
date | Wed, 10 Sep 2003 23:40:55 +0000 |
parents | 62c16edd18c6 |
children | dcb784544ec6 |
line wrap: on
line diff
--- a/mpegvideo.c Wed Sep 10 11:28:18 2003 +0000 +++ b/mpegvideo.c Wed Sep 10 23:40:55 2003 +0000 @@ -371,6 +371,11 @@ + (toupper((s->avctx->codec_tag>>16)&0xFF)<<16) + (toupper((s->avctx->codec_tag>>24)&0xFF)<<24); + s->avctx->stream_codec_tag= toupper( s->avctx->stream_codec_tag &0xFF) + + (toupper((s->avctx->stream_codec_tag>>8 )&0xFF)<<8 ) + + (toupper((s->avctx->stream_codec_tag>>16)&0xFF)<<16) + + (toupper((s->avctx->stream_codec_tag>>24)&0xFF)<<24); + CHECKED_ALLOCZ(s->allocated_edge_emu_buffer, (s->width+64)*2*17*2); //(width + edge + align)*interlaced*MBsize*tolerance s->edge_emu_buffer= s->allocated_edge_emu_buffer + (s->width+64)*2*17; @@ -874,7 +879,7 @@ MPV_common_end(s); if (s->out_format == FMT_MJPEG) mjpeg_close(s); - + av_freep(&avctx->extradata); return 0;