1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

give the user a chance to override codec_tag

Originally committed as revision 3382 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2004-08-12 23:36:48 +00:00
parent 6ba5cbc699
commit 6d24231e50

View 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;
}