diff mbox series

[FFmpeg-devel] avcodec/mlp_parser: Do not drop data before a major sync

Message ID 20220308222128.28289-1-michael@niedermayer.cc
State New
Headers show
Series [FFmpeg-devel] avcodec/mlp_parser: Do not drop data before a major sync | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_armv7_RPi4 success Make finished
andriy/make_fate_armv7_RPi4 success Make fate finished

Commit Message

Michael Niedermayer March 8, 2022, 10:21 p.m. UTC
This does not attempt to split the data prior to a major sync
so it all is in one blob, but it is not dropped anymore.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
---
 libavcodec/mlp_parser.c | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/libavcodec/mlp_parser.c b/libavcodec/mlp_parser.c
index 9fea7db955..db8ac6d156 100644
--- a/libavcodec/mlp_parser.c
+++ b/libavcodec/mlp_parser.c
@@ -96,6 +96,9 @@  static int mlp_parse(AVCodecParserContext *s,
                 return ret;
             }
 
+            *poutbuf      = buf;
+            *poutbuf_size = buf_size;
+
             return i - 7;
         }