mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-16 12:21:18 +00:00
cbs_h264: Fix handling of unknown SEI
The user should only interact directly with the data length, not the payload size.
This commit is contained in:
parent
6dc79637f3
commit
4c9741a1dd
@ -761,8 +761,11 @@ static int FUNC(sei_payload)(CodedBitstreamContext *ctx, RWContext *rw,
|
||||
break;
|
||||
default:
|
||||
{
|
||||
allocate(current->payload.other.data, current->payload_size);
|
||||
for (i = 0; i < current->payload_size; i++)
|
||||
#ifdef READ
|
||||
current->payload.other.data_length = current->payload_size;
|
||||
#endif
|
||||
allocate(current->payload.other.data, current->payload.other.data_length);
|
||||
for (i = 0; i < current->payload.other.data_length; i++)
|
||||
xu(8, payload_byte[i], current->payload.other.data[i], 0, 255, 1, i);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user