|
|
@ -1723,7 +1723,6 @@ static int add_metadata_from_side_data(const AVPacket *avpkt, AVFrame *frame) |
|
|
|
int ff_decode_frame_props(AVCodecContext *avctx, AVFrame *frame) |
|
|
|
int ff_decode_frame_props(AVCodecContext *avctx, AVFrame *frame) |
|
|
|
{ |
|
|
|
{ |
|
|
|
AVPacket *pkt = avctx->internal->last_pkt_props; |
|
|
|
AVPacket *pkt = avctx->internal->last_pkt_props; |
|
|
|
int i; |
|
|
|
|
|
|
|
static const struct { |
|
|
|
static const struct { |
|
|
|
enum AVPacketSideDataType packet; |
|
|
|
enum AVPacketSideDataType packet; |
|
|
|
enum AVFrameSideDataType frame; |
|
|
|
enum AVFrameSideDataType frame; |
|
|
@ -1754,7 +1753,7 @@ FF_ENABLE_DEPRECATION_WARNINGS |
|
|
|
frame->pkt_duration = pkt->duration; |
|
|
|
frame->pkt_duration = pkt->duration; |
|
|
|
frame->pkt_size = pkt->size; |
|
|
|
frame->pkt_size = pkt->size; |
|
|
|
|
|
|
|
|
|
|
|
for (i = 0; i < FF_ARRAY_ELEMS(sd); i++) { |
|
|
|
for (int i = 0; i < FF_ARRAY_ELEMS(sd); i++) { |
|
|
|
buffer_size_t size; |
|
|
|
buffer_size_t size; |
|
|
|
uint8_t *packet_sd = av_packet_get_side_data(pkt, sd[i].packet, &size); |
|
|
|
uint8_t *packet_sd = av_packet_get_side_data(pkt, sd[i].packet, &size); |
|
|
|
if (packet_sd) { |
|
|
|
if (packet_sd) { |
|
|
|