Commit 757424ae authored by michael's avatar michael

give the user a chance to override codec_tag


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@3382 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 61579b38
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment