avformat/bit: check that pkt->size is 10 in write_packet
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Thu, 26 Feb 2015 20:38:50 +0000 (21:38 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 26 Feb 2015 22:19:31 +0000 (23:19 +0100)
commiteeda2c3de8a8484d9e7d1e47ac836bec850b31fc
tree096f1c091e97fca4067a6b929a03f594e02b3297
parent19dbe89f03d0fc97a43a4ac7989e7db2d5bf313b
avformat/bit: check that pkt->size is 10 in write_packet

Ohter packet sizes are not supported by this muxer.

This avoids a null pointer dereference of pkt->data.

Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/bit.c