]> git.sesse.net Git - ffmpeg/commitdiff
give the user a chance to override codec_tag
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 12 Aug 2004 23:36:48 +0000 (23:36 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 12 Aug 2004 23:36:48 +0000 (23:36 +0000)
Originally committed as revision 3382 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/raw.c

index a8a009bad1d389be661b06a472d59ba9957505e8..91aba460ba5f711d72463b4a3abb25b7f7973c59 100644 (file)
@@ -151,7 +151,8 @@ static int raw_init_encoder(AVCodecContext *avctx)
     avctx->coded_frame = (AVFrame *)avctx->priv_data;
     avctx->coded_frame->pict_type = FF_I_TYPE;
     avctx->coded_frame->key_frame = 1;
-    avctx->codec_tag = findFourCC(avctx->pix_fmt);
+    if(!avctx->codec_tag)
+        avctx->codec_tag = findFourCC(avctx->pix_fmt);
     return 0;
 }