lavc/avpacket: Initialize a variable in error path.

Fixes ticket #6153.

Tested-by: Tyson Smith
pull/260/head^2
Carl Eugen Hoyos 8 years ago
parent 9ccc6cecd2
commit 1d54be2153
  1. 2
      libavcodec/avpacket.c

@ -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