nsvdec: Propagate error values instead of returning 0 in nsv_read_header().
authorDiego Biurrun <diego@biurrun.de>
Thu, 23 Jun 2011 11:27:21 +0000 (13:27 +0200)
committerDiego Biurrun <diego@biurrun.de>
Thu, 23 Jun 2011 11:47:16 +0000 (13:47 +0200)
This eliminates a warning about a set-but-unused variable.

libavformat/nsvdec.c

index 9adb2f4..6e9cfe3 100644 (file)
@@ -531,7 +531,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)