diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2002-09-27 10:27:57 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2002-09-27 10:27:57 +0000 |
commit | 202ef8b8196a107df242b29ebee8cbbd72549057 (patch) | |
tree | 5f6ac42c30e27ed2a3307c6c79f7f3c159267ec9 /libavcodec/mpegvideo.c | |
parent | 0c2dd16eb65bb0ade97346aabecc4762f6bcac31 (diff) | |
download | ffmpeg-202ef8b8196a107df242b29ebee8cbbd72549057.tar.gz |
ff_get_fourcc() & XVIX support
Originally committed as revision 975 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpegvideo.c')
-rw-r--r-- | libavcodec/mpegvideo.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index 3bd5a6fe7e..98bc596b49 100644 --- a/libavcodec/mpegvideo.c +++ b/libavcodec/mpegvideo.c @@ -18,6 +18,8 @@ * * 4MV & hq & b-frame encoding stuff by Michael Niedermayer <michaelni@gmx.at> */ + +#include <ctype.h> #include "avcodec.h" #include "dsputil.h" #include "mpegvideo.h" @@ -162,6 +164,12 @@ int MPV_common_init(MpegEncContext *s) /* set default edge pos, will be overriden in decode_header if needed */ s->h_edge_pos= s->mb_width*16; s->v_edge_pos= s->mb_height*16; + + /* convert fourcc to upper case */ + s->avctx->fourcc= toupper( s->avctx->fourcc &0xFF) + + (toupper((s->avctx->fourcc>>8 )&0xFF)<<8 ) + + (toupper((s->avctx->fourcc>>16)&0xFF)<<16) + + (toupper((s->avctx->fourcc>>24)&0xFF)<<24); s->mb_num = s->mb_width * s->mb_height; if(!(s->flags&CODEC_FLAG_DR1)){ |