Browse Source

lavc/avpacket: Initialize a variable in error path.

Fixes ticket #6153.

Tested-by: Tyson Smith
(cherry picked from commit 1d54be2153)
tags/n3.2.5
Carl Eugen Hoyos 9 years ago
parent
commit
5c524e651f
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavcodec/avpacket.c

+ 2
- 0
libavcodec/avpacket.c View File

@@ -348,6 +348,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…
Cancel
Save