OSDN Git Service

dvbsubdec: pass correct input buffer size
authorJindrich Makovicka <makovick@gmail.com>
Sat, 5 Feb 2011 10:43:11 +0000 (10:43 +0000)
committerMans Rullgard <mans@mansr.com>
Mon, 7 Feb 2011 14:21:36 +0000 (14:21 +0000)
commit5bea615dc383cf3617c5057db4fbc6832fc64137
treee43e297ad6496eac059e5098e47fe937d5e4bad5
parent90e8a9c34f641d0cb9137190c1912a3da3095e01
dvbsubdec: pass correct input buffer size

In some places, dvbsubdec passes improper input buffer size to
bitstream reading functions, not accounting for reading pointer
updates.

Fixed by using buffer_end - buffer pointer instead of fixed buffer length.

Signed-off-by: Jindrich Makovicka <makovick@gmail.com>
Signed-off-by: Mans Rullgard <mans@mansr.com>
libavcodec/dvbsubdec.c