projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f038cf3
)
nsvdec: Propagate error values instead of returning 0 in nsv_read_header().
author
Diego Biurrun
<diego@biurrun.de>
Thu, 23 Jun 2011 11:27:21 +0000
(13:27 +0200)
committer
Diego Biurrun
<diego@biurrun.de>
Thu, 23 Jun 2011 11:47:16 +0000
(13:47 +0200)
This eliminates a warning about a set-but-unused variable.
libavformat/nsvdec.c
patch
|
blob
|
history
diff --git
a/libavformat/nsvdec.c
b/libavformat/nsvdec.c
index 9adb2f4729b2101ef1fc887f2b42b7f0d81cdc83..6e9cfe3a84609da743ed1ad7cbf1e680bcea6144 100644
(file)
--- 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)