h264: improve checks before calling ff_h264_decode_extradata
authorAlexander Strasser <eclipse7@gmx.net>
Sat, 24 Sep 2011 16:23:38 +0000 (18:23 +0200)
committerAlexander Strasser <eclipse7@gmx.net>
Sun, 25 Sep 2011 15:16:44 +0000 (17:16 +0200)
commitbaad01d8b4bfe63c7c4e571ed553f7845d78d9c0
treeb9ebf10903eeac381aa7de201a24db9d9eab71cb
parent715f259bf949b06df1b5ed0307606dc258754c99
h264: improve checks before calling ff_h264_decode_extradata

  The ff_h264_decode_extradata routine now checks for the buffer size
and pointer internally. This makes it possible to remove the external
checks in ff_h264_decode_init.

  In decode_frame there was a size check missing because the buffer
gets tested prior to the invocation of ff_h264_decode_extradata().

Signed-off-by: Alexander Strasser <eclipse7@gmx.net>
libavcodec/h264.c