[FFmpeg-devel] [PATCH 2/2] nsv: return error code instead of discarding it in read_header()

Aurelien Jacobs aurel at gnuage.org
Sun May 15 23:04:59 CEST 2011


---
 libavformat/nsvdec.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavformat/nsvdec.c b/libavformat/nsvdec.c
index dacfd1f..5792f24 100644
--- a/libavformat/nsvdec.c
+++ b/libavformat/nsvdec.c
@@ -532,7 +532,7 @@ static int nsv_read_header(AVFormatContext *s, AVFormatParameters *ap)
     err = nsv_read_chunk(s, 1);
 
     av_dlog(s, "parsed header\n");
-    return 0;
+    return err;
 }
 
 static int nsv_read_chunk(AVFormatContext *s, int fill_header)
-- 
1.7.5.1



More information about the ffmpeg-devel mailing list