Browse Source

give the user a chance to override codec_tag

Originally committed as revision 3382 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Michael Niedermayer 21 years ago
parent
commit
6d24231e50
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavcodec/raw.c

+ 2
- 1
libavcodec/raw.c 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;
}



Loading…
Cancel
Save