Browse Source

cbs_h264: Fix handling of unknown SEI

The user should only interact directly with the data length, not the
payload size.
tags/n4.1
Mark Thompson 7 years ago
parent
commit
4c9741a1dd
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      libavcodec/cbs_h264_syntax_template.c

+ 5
- 2
libavcodec/cbs_h264_syntax_template.c 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);
}
}


Loading…
Cancel
Save