aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2011-06-23 13:27:21 +0200
committerDiego Biurrun <diego@biurrun.de>2011-06-23 13:47:16 +0200
commit35fa0d47585cef28cd8191dccf0607d90c7667a6 (patch)
tree85818674feafdd4dca6f0f85cd6e2837268d7433
parentf038cf3c745099151cdc8aa311fa83f5907598a6 (diff)
downloadffmpeg-35fa0d47585cef28cd8191dccf0607d90c7667a6.tar.gz
nsvdec: Propagate error values instead of returning 0 in nsv_read_header().
This eliminates a warning about a set-but-unused variable.
-rw-r--r--libavformat/nsvdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/nsvdec.c b/libavformat/nsvdec.c
index 9adb2f4729..6e9cfe3a84 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)