diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-09-07 12:02:26 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-09-10 21:22:30 +0200 |
commit | cfa47fd3310aa64d5c48e855bfcaf26d170bcbc1 (patch) | |
tree | 81b7df5f60d0808297dafc4229dac9def914749e /libavcodec/qpeg.c | |
parent | 0487786ffe272af2954ed4d81e827f7ad9e76895 (diff) |
all: Use av_frame_replace() where appropriate
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/qpeg.c')
-rw-r--r-- | libavcodec/qpeg.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/qpeg.c b/libavcodec/qpeg.c index 1f76ebc5a1..9b4ad8e25d 100644 --- a/libavcodec/qpeg.c +++ b/libavcodec/qpeg.c @@ -307,8 +307,7 @@ FF_ENABLE_DEPRECATION_WARNINGS #endif memcpy(p->data[1], a->pal, AVPALETTE_SIZE); - av_frame_unref(ref); - if ((ret = av_frame_ref(ref, p)) < 0) + if ((ret = av_frame_replace(ref, p)) < 0) return ret; if (intra) |