diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-02-02 06:40:27 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-04-01 17:02:54 +0200 |
commit | 37250f7f643708d506394c63b425db7acb35a9c4 (patch) | |
tree | eb2cc9488b85e62bac501abfc66748f23cff998d /libavcodec/snowenc.c | |
parent | 88720f3d810560f7018315b959318a07f5eaf7f3 (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.c | 2 |
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]; |