mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-27 10:51:31 +08:00
h264: add H264_ prefix to the NAL unit types
This will prevent conflicts e.g. in code that deals with both h264 and hevc.
This commit is contained in:
@@ -330,12 +330,12 @@ static int decode_extradata_ps(const uint8_t *data, int size, H264ParamSets *ps,
|
||||
for (i = 0; i < pkt.nb_nals; i++) {
|
||||
H2645NAL *nal = &pkt.nals[i];
|
||||
switch (nal->type) {
|
||||
case NAL_SPS:
|
||||
case H264_NAL_SPS:
|
||||
ret = ff_h264_decode_seq_parameter_set(&nal->gb, logctx, ps);
|
||||
if (ret < 0)
|
||||
goto fail;
|
||||
break;
|
||||
case NAL_PPS:
|
||||
case H264_NAL_PPS:
|
||||
ret = ff_h264_decode_picture_parameter_set(&nal->gb, logctx, ps,
|
||||
nal->size_bits);
|
||||
if (ret < 0)
|
||||
|
||||
Reference in New Issue
Block a user