lavc/avpacket: Initialize a variable in error path.
authorCarl Eugen Hoyos <cehoyos@ag.or.at>
Thu, 16 Feb 2017 23:46:14 +0000 (00:46 +0100)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Fri, 17 Feb 2017 09:31:29 +0000 (10:31 +0100)
Fixes ticket #6153.

Tested-by: Tyson Smith
libavcodec/avpacket.c

index 24b4efb..8e028a2 100644 (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;
 }