mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-26 17:32:06 +00:00
avformat/matroskadec: also export non-HDR10+ ITU-T T.35 payloads as BlockAdditional side data
Partially reverts a change from88de01d878
, and2133cadfcf
. Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
b18a9c2971
commit
c558fcf41e
@ -3719,19 +3719,21 @@ static int matroska_parse_block_additional(MatroskaDemuxContext *matroska,
|
|||||||
av_free(hdrplus);
|
av_free(hdrplus);
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
break;
|
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
side_data = av_packet_new_side_data(pkt, AV_PKT_DATA_MATROSKA_BLOCKADDITIONAL,
|
|
||||||
size + (size_t)8);
|
|
||||||
if (!side_data)
|
|
||||||
return AVERROR(ENOMEM);
|
|
||||||
|
|
||||||
AV_WB64(side_data, id);
|
|
||||||
memcpy(side_data + 8, data, size);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
side_data = av_packet_new_side_data(pkt, AV_PKT_DATA_MATROSKA_BLOCKADDITIONAL,
|
||||||
|
size + (size_t)8);
|
||||||
|
if (!side_data)
|
||||||
|
return AVERROR(ENOMEM);
|
||||||
|
|
||||||
|
AV_WB64(side_data, id);
|
||||||
|
memcpy(side_data + 8, data, size);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user