summaryrefslogtreecommitdiff
path: root/libavcodec/snowenc.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-02-02 06:40:27 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-04-01 17:02:54 +0200
commit37250f7f643708d506394c63b425db7acb35a9c4 (patch)
treeeb2cc9488b85e62bac501abfc66748f23cff998d /libavcodec/snowenc.c
parent88720f3d810560f7018315b959318a07f5eaf7f3 (diff)
avcodec/mpegvideo: Make new_picture an ordinary AVFrame
It is currently a "Picture", an mpegvideo-specific type that has a lot of baggage, all of which is unnecessary for new_picture, because only its embedded AVFrame is ever used. So just use an ordinary AVFrame. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/snowenc.c')
-rw-r--r--libavcodec/snowenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/snowenc.c b/libavcodec/snowenc.c
index b5a5e57a91..727e0de726 100644
--- a/libavcodec/snowenc.c
+++ b/libavcodec/snowenc.c
@@ -1647,7 +1647,7 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
s->m.avctx= s->avctx;
s->m. last_picture.f = s->last_picture[0];
- s->m. new_picture.f = s->input_picture;
+ s->m. new_picture = s->input_picture;
s->m. last_picture_ptr= &s->m. last_picture;
s->m.linesize = stride;
s->m.uvlinesize= s->current_picture->linesize[1];