Files
FFmpeg/libavcodec
James Almer 089706e009 avcodec/hevcdec: check that the local context list was allocated before dereferencing it
Since the decoder is not flagged as init cleanup capable, hevc_decode_free()
is being called manually if the hevc_decode_extradata() call fails at the end
of hevc_decode_init().
In a frame threading scenario, however, if AVCodec->init() returns an error,
ff_frame_thread_free() will be called regardless of the above flag being set
or not, resulting in hevc_decode_free() being called a second time for the
same context.

Workaround this by ensuring pointers are not dereferenced if they are NULL,
and set the decoder as init cleanup capable while at it.

Fixes ticket #9099.

Signed-off-by: James Almer <jamrial@gmail.com>
2021-02-11 13:15:45 -03:00
..
2021-01-14 01:44:21 +01:00
2021-01-01 15:25:48 +01:00
2021-01-01 15:25:48 +01:00
2021-02-02 14:29:33 +01: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
2020-06-10 12:36:44 +02:00
2021-01-29 19:36:46 +01:00
2020-08-26 21:13:38 +02:00
2020-08-26 21:13:38 +02:00
2020-12-08 17:51:44 +01:00
2021-02-09 15:01:34 +01:00
2021-02-02 13:12:12 +01:00
2020-03-12 20:26:48 +00:00
2020-12-08 17:51:48 +01:00
2020-02-22 00:15:43 +01:00
2020-11-12 15:55:16 +01:00
2020-10-24 19:11:12 +02:00
2021-01-08 05:05:10 +01:00
2020-11-10 02:14:29 +01:00
2020-03-22 11:55:44 -03:00
2021-01-27 11:53:22 +01:00
2021-01-21 17:13:54 +00:00
2021-01-21 17:13:54 +00:00
2021-01-01 15:25:48 +01:00
2021-01-01 15:25:48 +01: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
2020-07-20 18:41:09 +02:00
2020-07-20 18:41:09 +02:00
2021-02-09 15:01:34 +01:00
2021-02-08 11:06:10 +01:00
2021-01-01 14:33:47 +01:00
2020-10-19 05:15:00 +02:00
2020-12-31 11:49:43 +01:00
2020-11-24 09:38:35 +01:00
2019-12-10 16:09:14 +01:00
2020-01-11 23:31:18 +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-05-12 01:00:28 +02:00
2020-11-11 18:36:09 +01:00
2021-01-21 17:13:54 +00: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-02-09 15:01:34 +01:00
2020-05-30 18:02:55 +02:00
2020-07-05 19:59:49 +02:00
2021-02-02 14:29:33 +01:00
2020-09-01 14:19:19 +02:00
2020-05-22 22:23:18 +02:00
2020-11-24 09:38:35 +01:00
2020-01-13 23:26:25 +00:00
2020-07-20 18:41:09 +02:00
2020-12-08 17:51:44 +01:00
2020-11-02 22:57:23 +00:00
2020-01-11 23:31:18 +01:00
2021-01-01 15:25:48 +01:00
2021-02-09 15:01:34 +01:00
2021-01-01 15:25:48 +01:00
2021-01-25 00:18:47 +01:00
2021-01-01 15:25:48 +01:00
2020-04-16 15:05:07 -03:00
2020-10-23 10:37:04 +02:00
2020-05-23 07:07:36 +02:00
2020-10-16 00:38:50 +02:00