History

rawenc: initialize coded_frame via avcodec_get_frame_defaults.

Reimar Döffinger committed 14 years ago

Commit 97dece31 parent dbc7c611 file · +1 −1Browse files

Unified · Split

libavcodec/rawenc.c+1−1
@@ -32,8 +32,8 @@ · 31 unmodified lines
3232 static av_cold int raw_init_encoder(AVCodecContext *avctx)
3333 {
3434 avctx->coded_frame = (AVFrame *)avctx->priv_data;
35+ avcodec_get_frame_defaults(avctx->coded_frame);
3536 avctx->coded_frame->pict_type = AV_PICTURE_TYPE_I;
36− avctx->coded_frame->key_frame = 1;
3737 avctx->bits_per_coded_sample = av_get_bits_per_pixel(&av_pix_fmt_descriptors[avctx->pix_fmt]);
3838 if(!avctx->codec_tag)
3939 avctx->codec_tag = avcodec_pix_fmt_to_codec_tag(avctx->pix_fmt);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t