diff options
author | Diego Biurrun <[email protected]> | 2011-06-23 13:27:21 +0200 |
---|---|---|
committer | Reinhard Tartler <[email protected]> | 2012-04-01 18:33:29 +0200 |
commit | 6fe5038753ec8da6770b1872588f5d83f6f13963 (patch) | |
tree | 82533863b2fa10cbe580f53702593f06c06e4f7e | |
parent | 6ae95a0b93e8df15fe5f364535a7214be0817736 (diff) |
nsvdec: Propagate error values instead of returning 0 in nsv_read_header().
This eliminates a warning about a set-but-unused variable.
(cherry picked from commit 35fa0d47585cef28cd8191dccf0607d90c7667a6)
Signed-off-by: Reinhard Tartler <[email protected]>
-rw-r--r-- | libavformat/nsvdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/nsvdec.c b/libavformat/nsvdec.c index 67c103d21f..61cc69ffe1 100644 --- a/libavformat/nsvdec.c +++ b/libavformat/nsvdec.c @@ -542,7 +542,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) |