[FFmpeg-cvslog] r21769 - trunk/libavformat/anm.c

pross subversion
Fri Feb 12 12:31:36 CET 2010


Author: pross
Date: Fri Feb 12 12:31:35 2010
New Revision: 21769

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

Modified:
   trunk/libavformat/anm.c

Modified: trunk/libavformat/anm.c
==============================================================================
--- trunk/libavformat/anm.c	Fri Feb 12 02:37:53 2010	(r21768)
+++ trunk/libavformat/anm.c	Fri Feb 12 12:31:35 2010	(r21769)
@@ -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 *
         return AVERROR(EIO);
 
     if (anm->page < 0)
-        return 0;
+        return anm->page;
 
 repeat:
     p = &anm->pt[anm->page];



More information about the ffmpeg-cvslog mailing list