diff options
author | Peter Ross <pross@xvid.org> | 2010-02-12 11:31:35 +0000 |
---|---|---|
committer | Peter Ross <pross@xvid.org> | 2010-02-12 11:31:35 +0000 |
commit | cbd3441eec2c2cf02d70c143e1625ccc2dc4c5e9 (patch) | |
tree | 9211159d41153dafb61f85a3578d58f211bcf73a /libavformat/anm.c | |
parent | 86d58bcfd919d39ac10531aa999094159cd48dfa (diff) | |
download | ffmpeg-cbd3441eec2c2cf02d70c143e1625ccc2dc4c5e9.tar.gz |
Make DeluxePaint Animation demuxer actually return the find_record() error code (issue 1739).
Originally committed as revision 21769 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/anm.c')
-rw-r--r-- | libavformat/anm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/anm.c b/libavformat/anm.c index b80e429b82..2099dc96e8 100644 --- a/libavformat/anm.c +++ b/libavformat/anm.c @@ -39,7 +39,7 @@ typedef struct { int page_table_offset; #define MAX_PAGES 256 /** Deluxe Paint hardcoded value */ Page pt[MAX_PAGES]; /** page table */ - int page; /** current page */ + int page; /** current page (or AVERROR_xxx code) */ int record; /** current record (with in page) */ } AnmDemuxContext; @@ -185,7 +185,7 @@ static int read_packet(AVFormatContext *s, return AVERROR(EIO); if (anm->page < 0) - return 0; + return anm->page; repeat: p = &anm->pt[anm->page]; |