mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-24 03:39:45 +00:00
Do not try to duplicate packets that have data==NULL.
Originally committed as revision 16483 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
1b9bbf8674
commit
9f06bd9e96
@ -295,7 +295,7 @@ int av_get_packet(ByteIOContext *s, AVPacket *pkt, int size)
|
||||
|
||||
int av_dup_packet(AVPacket *pkt)
|
||||
{
|
||||
if (pkt->destruct != av_destruct_packet) {
|
||||
if (pkt->destruct != av_destruct_packet && pkt->data) {
|
||||
uint8_t *data;
|
||||
/* We duplicate the packet and don't forget to add the padding again. */
|
||||
if((unsigned)pkt->size > (unsigned)pkt->size + FF_INPUT_BUFFER_PADDING_SIZE)
|
||||
|
Loading…
Reference in New Issue
Block a user