mirror of
https://mirror.skon.top/https://github.com/FFmpeg/FFmpeg
synced 2026-04-20 21:00:41 +08:00
lavc/videotoolboxenc: return SEI parse errors
Return the actual find_sei_end() error when SEI appending fails instead of reusing the previous status code. This preserves the real parse failure for callers instead of reporting malformed SEI handling as success. Signed-off-by: Jun Zhao <barryjzhao@tencent.com> (cherry picked from commit f7c04283367269c7aef2505a1839fb3ea9362330)
This commit is contained in:
@@ -2109,7 +2109,7 @@ static int copy_replace_length_codes(
|
|||||||
uint8_t *new_sei;
|
uint8_t *new_sei;
|
||||||
old_sei_length = find_sei_end(avctx, dst_box, box_len, &new_sei);
|
old_sei_length = find_sei_end(avctx, dst_box, box_len, &new_sei);
|
||||||
if (old_sei_length < 0)
|
if (old_sei_length < 0)
|
||||||
return status;
|
return old_sei_length;
|
||||||
|
|
||||||
wrote_bytes = write_sei(sei,
|
wrote_bytes = write_sei(sei,
|
||||||
SEI_TYPE_USER_DATA_REGISTERED_ITU_T_T35,
|
SEI_TYPE_USER_DATA_REGISTERED_ITU_T_T35,
|
||||||
|
|||||||
Reference in New Issue
Block a user