[SCM] libav/experimental: give the user a chance to override codec_tag
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 15:41:12 UTC 2013
The following commit has been merged in the experimental branch:
commit 6d24231e504f71a76a8fabe87c8d7cfa826da75a
Author: Michael Niedermayer <michaelni at gmx.at>
Date: Thu Aug 12 23:36:48 2004 +0000
give the user a chance to override codec_tag
Originally committed as revision 3382 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/libavcodec/raw.c b/libavcodec/raw.c
index a8a009b..91aba46 100644
--- a/libavcodec/raw.c
+++ b/libavcodec/raw.c
@@ -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;
}
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list