lavc/utils: in avcodec_decode_video2() return proper error code instead of -1
authorStefano Sabatini <stefasab@gmail.com>
Thu, 14 Jun 2012 11:02:57 +0000 (13:02 +0200)
committerStefano Sabatini <stefasab@gmail.com>
Fri, 15 Jun 2012 22:29:59 +0000 (00:29 +0200)
commit3cc1a8988112896e302c96f9df8839d983677891
tree1d713f948b0ab4462738412955212394c184169a
parent90d8506fbf1b5d9bd6ed1f01a8610df01771e3c3
lavc/utils: in avcodec_decode_video2() return proper error code instead of -1

Return AVERROR(EINVAL) in case of invalid coded size.
libavcodec/utils.c