1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-19 05:49:09 +02:00
FFmpeg/libavformat
Marton Balint 5f92a19231 avformat/assenc: avoid incorrect copy of null terminator
When writing a subtitle SSA/ASS subtitle file, the AVCodecParameters::extradata
buffer is written directly to the output.  In the case where the buffer is
filled from a matroska source file produced by some older versions of
Handbrake, this buffer ends with a null terminating character, which is then
erroneously copied into the middle of the output file. The change here avoids
this problem by treating it as a string rather than a raw buffer. This way it
is agnostic as to whether the source buffer was null terminated or not.

Fixes ticket #10203.

Reported-by: Tim Angus <tim at ngus.net>
Signed-off-by: Marton Balint <cus@passwd.hu>
2023-04-02 21:31:05 +02:00
..
2022-03-15 09:42:29 -03:00
2022-05-10 07:37:38 +02:00
2022-03-15 09:42:29 -03:00
2022-03-15 09:42:29 -03:00
2022-03-15 09:42:30 -03:00
2023-01-27 19:45:36 +01:00
2023-01-27 19:45:36 +01:00
2023-02-11 21:29:35 +01:00
2022-09-23 20:27:35 +02:00
2022-09-24 17:57:35 +02:00
2022-12-01 11:21:15 +01:00
2022-10-24 02:00:31 +02:00
2022-02-24 12:56:49 +01:00
2022-09-04 15:03:32 -04:00
2022-03-15 09:42:30 -03:00
2022-06-09 20:46:10 +02:00
2022-03-15 09:42:31 -03:00
2023-01-25 18:49:09 +01:00
2022-05-10 07:37:38 +02:00
2023-02-18 09:56:40 +01:00
2022-03-15 09:42:31 -03:00
2022-02-24 12:56:49 +01:00
2023-02-09 15:35:08 +01:00
2022-03-15 09:42:31 -03:00
2022-09-24 17:57:36 +02:00
2022-03-15 09:42:31 -03:00
2022-12-01 11:21:14 +01:00
2022-09-24 17:57:37 +02:00
2022-03-15 09:42:32 -03:00
2023-02-19 01:31:45 +08:00
2022-03-16 14:05:26 +02:00
2022-03-15 09:42:32 -03:00
2022-03-15 09:42:32 -03:00
2022-03-15 09:42:33 -03:00
2022-03-15 09:42:33 -03:00
2022-03-15 09:42:33 -03:00
2022-03-15 09:42:33 -03:00
2022-09-22 17:44:05 +02:00
2022-05-10 07:37:38 +02:00
2022-03-15 09:42:33 -03:00
2022-02-24 12:56:49 +01:00
2022-03-15 09:42:33 -03:00
2022-05-06 15:57:45 +02:00
2022-05-10 07:37:38 +02:00
2022-03-15 09:42:34 -03:00
2023-03-16 22:52:41 +08:00
2023-03-16 22:52:41 +08:00
2023-03-25 22:14:09 +08:00
2022-03-15 09:42:35 -03:00
2022-03-15 09:42:35 -03:00
2022-03-15 09:42:35 -03:00
2022-03-15 09:42:35 -03:00
2022-03-15 09:42:35 -03:00
2022-03-15 09:42:35 -03:00
2022-03-15 09:42:35 -03:00
2022-03-15 09:42:36 -03:00
2023-01-11 18:50:36 +08:00
2022-03-15 09:42:36 -03:00
2022-03-15 09:42:36 -03:00
2022-10-18 13:20:37 +11:00
2023-02-22 18:01:51 +01:00
2022-09-24 18:28:19 +02:00
2022-03-15 09:42:36 -03:00
2022-03-26 00:42:00 +02:00
2022-03-15 09:42:37 -03:00
2022-07-07 21:52:52 +02:00
2023-02-11 11:30:46 +01:00
2022-08-31 16:24:22 +02:00
2022-03-15 09:42:37 -03:00
2022-03-15 09:42:37 -03:00
2022-03-15 09:42:37 -03:00
2023-01-13 11:22:59 -06:00
2022-03-15 09:42:37 -03:00
2022-03-15 09:42:37 -03:00
2023-04-02 10:18:56 +05:30
2022-03-15 09:42:38 -03:00
2022-03-15 09:42:38 -03:00
2022-03-15 09:42:38 -03:00
2022-02-24 12:56:49 +01:00
2022-03-15 09:42:38 -03:00
2022-10-04 23:47:54 +02:00
2022-03-15 09:42:38 -03:00
2022-05-10 07:37:38 +02:00
2022-03-15 09:42:38 -03:00
2023-01-24 16:58:01 +01:00
2022-03-15 09:42:38 -03:00
2022-03-15 09:42:38 -03:00
2023-01-30 21:02:48 +01:00
2022-03-15 09:42:39 -03:00
2022-03-15 09:42:39 -03:00