aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2012-01-28 22:04:22 +0100
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2012-01-28 23:21:03 +0100
commit97dece333df07befa4052ed6f5a823ec3103a67d (patch)
treef31c7c9afb293491e65fd5b07ddfb1d2a613fdbd
parentdbc7c6121e563f07b708f2facf7b623ddbfda717 (diff)
downloadffmpeg-97dece333df07befa4052ed6f5a823ec3103a67d.tar.gz
rawenc: initialize coded_frame via avcodec_get_frame_defaults.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
-rw-r--r--libavcodec/rawenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/rawenc.c b/libavcodec/rawenc.c
index 7077de170f..8fc9cd9fc0 100644
--- a/libavcodec/rawenc.c
+++ b/libavcodec/rawenc.c
@@ -32,8 +32,8 @@
static av_cold int raw_init_encoder(AVCodecContext *avctx)
{
avctx->coded_frame = (AVFrame *)avctx->priv_data;
+ avcodec_get_frame_defaults(avctx->coded_frame);
avctx->coded_frame->pict_type = AV_PICTURE_TYPE_I;
- avctx->coded_frame->key_frame = 1;
avctx->bits_per_coded_sample = av_get_bits_per_pixel(&av_pix_fmt_descriptors[avctx->pix_fmt]);
if(!avctx->codec_tag)
avctx->codec_tag = avcodec_pix_fmt_to_codec_tag(avctx->pix_fmt);