mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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
This commit is contained in:
parent
86d58bcfd9
commit
cbd3441eec
@ -39,7 +39,7 @@ typedef struct {
|
|||||||
int page_table_offset;
|
int page_table_offset;
|
||||||
#define MAX_PAGES 256 /** Deluxe Paint hardcoded value */
|
#define MAX_PAGES 256 /** Deluxe Paint hardcoded value */
|
||||||
Page pt[MAX_PAGES]; /** page table */
|
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) */
|
int record; /** current record (with in page) */
|
||||||
} AnmDemuxContext;
|
} AnmDemuxContext;
|
||||||
|
|
||||||
@ -185,7 +185,7 @@ static int read_packet(AVFormatContext *s,
|
|||||||
return AVERROR(EIO);
|
return AVERROR(EIO);
|
||||||
|
|
||||||
if (anm->page < 0)
|
if (anm->page < 0)
|
||||||
return 0;
|
return anm->page;
|
||||||
|
|
||||||
repeat:
|
repeat:
|
||||||
p = &anm->pt[anm->page];
|
p = &anm->pt[anm->page];
|
||||||
|
Loading…
Reference in New Issue
Block a user