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

Michael Niedermayer michael at niedermayer.cc
Wed Mar 9 00:21:28 EET 2022


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 at niedermayer.cc>
---
 libavcodec/mlp_parser.c | 3 +++
 1 file changed, 3 insertions(+)

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;
         }
 
-- 
2.17.1



More information about the ffmpeg-devel mailing list