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)