1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-29 22:00:58 +02:00
FFmpeg/libavcodec
Andreas Rheinhardt 9faf3f8bb0 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>
2021-03-20 03:56:57 +01:00
..
2021-02-27 17:09:44 +01:00
2021-01-01 15:25:48 +01:00
2021-01-01 15:25:48 +01:00
2021-03-19 23:38:33 +10:00
2021-03-05 19:45:00 +02:00
2020-10-15 22:53:56 +02:00
2020-12-08 17:51:48 +01:00
2020-12-08 17:51:47 +01:00
2021-03-09 13:41:22 +01:00
2020-06-10 12:36:44 +02:00
2020-08-26 21:13:38 +02:00
2020-08-26 21:13:38 +02:00
2021-02-27 17:09:44 +01:00
2021-03-01 06:10:44 +01:00
2020-12-08 17:51:44 +01:00
2021-03-01 17:36:42 +01:00
2021-03-01 17:36:42 +01:00
2021-02-09 15:01:34 +01:00
2021-03-09 13:41:22 +01:00
2020-11-12 15:55:16 +01:00
2021-03-08 19:19:19 +01:00
2021-03-09 13:41:22 +01:00
2021-01-08 05:05:10 +01:00
2021-01-21 17:13:54 +00:00
2021-01-21 17:13:54 +00:00
2021-01-21 17:13:54 +00:00
2020-06-05 18:14:17 +02:00
2020-11-24 11:35:03 +01:00
2020-06-14 18:20:37 +02:00
2020-06-15 04:22:28 +02:00
2021-03-01 06:10:44 +01:00
2021-03-08 09:31:04 +01:00
2020-07-20 18:41:09 +02:00
2020-07-20 18:41:09 +02:00
2021-03-08 19:19:19 +01:00
2021-03-09 13:41:22 +01:00
2020-12-31 11:49:43 +01:00
2020-11-24 09:38:35 +01:00
2020-12-08 17:51:46 +01:00
2020-12-08 17:51:47 +01:00
2021-02-04 17:26:06 +01:00
2020-11-11 18:36:09 +01:00
2020-05-26 10:52:12 +01:00
2020-05-26 10:52:12 +01:00
2021-01-01 15:25:48 +01:00
2021-01-01 15:25:48 +01:00
2021-03-01 17:36:16 +01:00
2021-03-09 13:41:22 +01:00
2021-03-09 13:41:22 +01:00
2020-05-30 18:02:55 +02:00
2021-02-02 14:29:33 +01:00
2021-03-09 13:41:22 +01:00
2020-05-22 22:23:18 +02:00
2021-03-01 17:36:42 +01:00
2020-11-24 09:38:35 +01:00
2020-07-20 18:41:09 +02:00
2020-12-08 17:51:44 +01:00
2021-03-05 19:45:00 +02:00
2021-03-05 19:45:00 +02:00
2020-11-02 22:57:23 +00:00
2021-01-01 15:25:48 +01:00
2021-03-09 13:41:22 +01:00
2021-01-25 00:18:47 +01:00
2021-01-01 15:25:48 +01:00
2020-10-23 10:37:04 +02:00
2020-05-23 07:07:36 +02:00