[FFmpeg-devel] [PATCH 4/4] avcodec/mmaldec: fix pointer type warning

2021-09-23 Thread Ho Ming Shun
Signed-off-by: Ho Ming Shun --- libavcodec/mmaldec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/mmaldec.c b/libavcodec/mmaldec.c index 0aad7d0bb1..8ec0fe 100644 --- a/libavcodec/mmaldec.c +++ b/libavcodec/mmaldec.c @@ -660,7 +660,7 @@ static int ffmal_copy_

[FFmpeg-devel] [PATCH 3/4] avcodec/mmaldec: re-use AVPacket for extra_data

2021-09-23 Thread Ho Ming Shun
extra_data and normal packets (from ff_decode_get_packet) processing do not overlap, thus we can re-use the spare AVPacket to send to ffmmal_add_packet. Furthermore, this removes allocation of AVPacket on the stack and stops using deprecated av_init_packet. --- libavcodec/mmaldec.c | 8 +++-

<    1   2