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 |
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 |
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; }
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(+)