[FFmpeg-cvslog] nsvdec: Propagate error values instead of returning 0 in nsv_read_header().

Diego Biurrun git at videolan.org
Fri Jun 24 03:13:06 CEST 2011


ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Thu Jun 23 13:27:21 2011 +0200| [35fa0d47585cef28cd8191dccf0607d90c7667a6] | committer: Diego Biurrun

nsvdec: Propagate error values instead of returning 0 in nsv_read_header().

This eliminates a warning about a set-but-unused variable.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=35fa0d47585cef28cd8191dccf0607d90c7667a6
---

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

diff --git a/libavformat/nsvdec.c b/libavformat/nsvdec.c
index 9adb2f4..6e9cfe3 100644
--- a/libavformat/nsvdec.c
+++ b/libavformat/nsvdec.c
@@ -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)



More information about the ffmpeg-cvslog mailing list