pthread: don't increment index on zero-sized packets.
authorAaron Colwell <acolwell@chromium.org>
Mon, 28 Nov 2011 15:23:03 +0000 (07:23 -0800)
committerRonald S. Bultje <rsbultje@gmail.com>
Tue, 29 Nov 2011 04:30:30 +0000 (20:30 -0800)
commit39a7a5b8ab12bc75306f52e671dfb1497771553b
tree001a19a4fc402da2246e81815bb2df0c42c397b9
parentac47e014bbaf5163871a8beb7522015e0bc27615
pthread: don't increment index on zero-sized packets.

The next call to decode() will update from an invalid index, which will
either lead to a memcpy() where dest==src (2 threads), or lead to a
crash (>2 threads).

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