diff mpegvideo.c @ 4155:0f28fc219799 libavcodec

add codec_tag and codec_stream_tag to MpegEncContext to not alter avctx values
author bcoudurier
date Tue, 07 Nov 2006 09:46:57 +0000
parents daae66c03857
children 46d38e3d7038
line wrap: on
line diff
--- a/mpegvideo.c	Tue Nov 07 05:57:42 2006 +0000
+++ b/mpegvideo.c	Tue Nov 07 09:46:57 2006 +0000
@@ -698,12 +698,12 @@
     yc_size = y_size + 2 * c_size;
 
     /* convert fourcc to upper case */
-    s->avctx->codec_tag=   toupper( s->avctx->codec_tag     &0xFF)
+    s->codec_tag=          toupper( s->avctx->codec_tag     &0xFF)
                         + (toupper((s->avctx->codec_tag>>8 )&0xFF)<<8 )
                         + (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)
+    s->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);