summaryrefslogtreecommitdiff
path: root/libavcodec/h264dec.h
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2021-08-08 18:19:00 -0300
committerJames Almer <jamrial@gmail.com>2021-08-10 15:11:42 -0300
commita2a5a579bc408cf6fae5751e6a6f2a3c820c3c30 (patch)
treeb509d0c86d10783161b9dae518df19e5a407d7e3 /libavcodec/h264dec.h
parentab448a7f9bca0f92fe2ebd147d39d19e47b9128e (diff)
downloadffmpeg-a2a5a579bc408cf6fae5751e6a6f2a3c820c3c30.tar.gz
avcodec/h264_picture: add ff_h264_replace_picture()
Will remove unnecessary allocations when both src and dst picture contain references to the same buffers. Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/h264dec.h')
-rw-r--r--libavcodec/h264dec.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/h264dec.h b/libavcodec/h264dec.h
index 8954b74795..125966aa04 100644
--- a/libavcodec/h264dec.h
+++ b/libavcodec/h264dec.h
@@ -833,6 +833,7 @@ static inline int find_start_code(const uint8_t *buf, int buf_size,
int ff_h264_field_end(H264Context *h, H264SliceContext *sl, int in_setup);
int ff_h264_ref_picture(H264Context *h, H264Picture *dst, H264Picture *src);
+int ff_h264_replace_picture(H264Context *h, H264Picture *dst, const H264Picture *src);
void ff_h264_unref_picture(H264Context *h, H264Picture *pic);
int ff_h264_slice_context_init(H264Context *h, H264SliceContext *sl);