Commit 4c9741a1 authored by Mark Thompson's avatar Mark Thompson

cbs_h264: Fix handling of unknown SEI

The user should only interact directly with the data length, not the
payload size.
parent 6dc79637
...@@ -761,8 +761,11 @@ static int FUNC(sei_payload)(CodedBitstreamContext *ctx, RWContext *rw, ...@@ -761,8 +761,11 @@ static int FUNC(sei_payload)(CodedBitstreamContext *ctx, RWContext *rw,
break; break;
default: default:
{ {
allocate(current->payload.other.data, current->payload_size); #ifdef READ
for (i = 0; i < current->payload_size; i++) 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); xu(8, payload_byte[i], current->payload.other.data[i], 0, 255, 1, i);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment