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, 12 Mar 2015 17:03:50 +0000 (18:03 +0100)
commit6739df26a62049ae579fa2a31c2552315eb640da
tree60b18fe61b4ef8dbee8a3f1b7336490958baec15
parentf92e8cccf5813dd62b7c4a2bea072badc7a250cb
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>
(cherry picked from commit eeda2c3de8a8484d9e7d1e47ac836bec850b31fc)

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