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 35fa0d4758)

Signed-off-by: Reinhard Tartler <siretart@tauware.de>
This commit is contained in:
Diego Biurrun
2011-06-23 13:27:21 +02:00
committed by Reinhard Tartler
parent 6ae95a0b93
commit 6fe5038753

View File

@@ -542,7 +542,7 @@ static int nsv_read_header(AVFormatContext *s, AVFormatParameters *ap)
err = nsv_read_chunk(s, 1); err = nsv_read_chunk(s, 1);
av_dlog(s, "parsed header\n"); av_dlog(s, "parsed header\n");
return 0; return err;
} }
static int nsv_read_chunk(AVFormatContext *s, int fill_header) static int nsv_read_chunk(AVFormatContext *s, int fill_header)