lavc/avpacket: Initialize a variable in error path.

Fixes ticket #6153.

Tested-by: Tyson Smith
(cherry picked from commit 1d54be2153)
This commit is contained in:
Carl Eugen Hoyos
2017-02-17 00:46:14 +01:00
parent 384d90f268
commit 401a3ae2cb

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;
}