You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
lavc/avpacket: Initialize a variable in error path.
Fixes ticket #6153. Tested-by: Tyson Smith
This commit is contained in:
@@ -348,6 +348,8 @@ uint8_t *av_packet_get_side_data(AVPacket *pkt, enum AVPacketSideDataType type,
|
|||||||
return pkt->side_data[i].data;
|
return pkt->side_data[i].data;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (size)
|
||||||
|
*size = 0;
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user