avidec: use sensible error codes instead of -1
authorJindrich Makovicka <makovick@gmail.com>
Thu, 17 Jan 2013 15:24:28 +0000 (16:24 +0100)
committerDiego Biurrun <diego@biurrun.de>
Mon, 21 Jan 2013 15:02:40 +0000 (16:02 +0100)
commit570a4a0189946c2c983da41d37fdd67fa13266e7
tree510d0db4aef147a6d89406415cbc9ddad5edc279
parent9f00b1cbababa08dd220dbc0c74286a4707be746
avidec: use sensible error codes instead of -1

Use AVERROR_INVALIDDATA on invalid inputs, and AVERROR_EOF when no more
frames are available in an interleaved AVI.

Signed-off-by: Jindrich Makovicka <makovick@gmail.com>
Signed-off-by: Diego Biurrun <diego@biurrun.de>
libavformat/avidec.c