mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-17 20:17:55 +02:00
lavc/avpacket: Initialize a variable in error path.
Fixes ticket #6153. Tested-by: Tyson Smith (cherry picked from commit 1d54be215309b8aa71a51826e4b0a1660fef9f93)
This commit is contained in:
parent
c63e587566
commit
9b6af4561b
@ -333,6 +333,8 @@ uint8_t *av_packet_get_side_data(AVPacket *pkt, enum AVPacketSideDataType type,
|
||||
return pkt->side_data[i].data;
|
||||
}
|
||||
}
|
||||
if (size)
|
||||
*size = 0;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user