4xm: pass the correct remaining buffer size to decode_i2_frame().
authorAneesh Dogra <lionaneesh@gmail.com>
Wed, 4 Jan 2012 18:40:01 +0000 (00:10 +0530)
committerRonald S. Bultje <rsbultje@gmail.com>
Thu, 5 Jan 2012 05:10:11 +0000 (21:10 -0800)
commit4b84f682232205eee84e0e6bea1858be8e234129
tree649230b62258c0ad6f6c149d5c9f544454180497
parent893f1376793e67e4be76d074d51313e59805bd40
4xm: pass the correct remaining buffer size to decode_i2_frame().

frame_size is the number of bytes left in the packet, so if we are passing
buf-4 we can safely read frame_size+4 bytes.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
libavcodec/4xm.c