aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/faanidct.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-03-19 16:02:15 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-03-22 08:17:33 +0100
commit2b114adcf4b46904e776d42a333db134e53dd6fc (patch)
treea0e18ccd828a21008677d5223e412737de2fbbd9 /libavcodec/faanidct.h
parent2a5c577ef347c9d947f3421c51e01cb88d7aa452 (diff)
downloadffmpeg-2b114adcf4b46904e776d42a333db134e53dd6fc.tar.gz
avcodec/parser: Don't return pointer to stack buffer
When flushing, the parser receives a dummy buffer with padding that lives on the stack of av_parser_parse2(). Certain parsers (e.g. Dolby E) only analyze the input, but don't repack it. When flushing, such parsers return a pointer to the stack buffer and a size of 0. And this is also what av_parser_parse2() returns. Fix this by always resetting poutbuf in case poutbuf_size is zero. Reviewed-by: James Almer <jamrial@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> (cherry picked from commit 9faf3f8bb04e537f552332aa316c6659dcd7d251)
Diffstat (limited to 'libavcodec/faanidct.h')
0 files changed, 0 insertions, 0 deletions