Commit 0c709014 authored by pross's avatar pross

Make DeluxePaint Animation demuxer actually return the find_record() error code (issue 1739).


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@21769 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent a13a31e0
......@@ -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];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment