mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-06-19 19:03:00 +02:00
cljr: set the properties of the coded_frame, not input frame.
This commit is contained in:
+2
-2
@@ -135,8 +135,8 @@ static int encode_frame(AVCodecContext *avctx, unsigned char *buf,
|
||||
AVFrame *p = data;
|
||||
int x, y;
|
||||
|
||||
p->pict_type = AV_PICTURE_TYPE_I;
|
||||
p->key_frame = 1;
|
||||
avctx->coded_frame->pict_type = AV_PICTURE_TYPE_I;
|
||||
avctx->coded_frame->key_frame = 1;
|
||||
|
||||
init_put_bits(&pb, buf, buf_size / 8);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user