1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-09-07 16:40:10 +02: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:
Mark Thompson 2018-05-07 23:05:52 +01:00
parent 6dc79637f3
commit 4c9741a1dd

View File

@ -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);
}
}