OSDN Git Service

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:27:12 +0000 (23:27 +0100)
commit81196b6d6018c8a303ad0c7ad28307b3c1c685d8
tree4dba3ad45e3db3828fd1dd6af2cc0b4f7742dc04
parentcd74b344c23572080a47e22eb09e380cbbddb0e0
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