[vlc-commits] demux: nuv: fix divbyzero
Francois Cartegnie
git at videolan.org
Thu Dec 31 00:00:12 CET 2015
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Dec 30 23:53:38 2015 +0100| [8908961a5c8cc6b992126073580782c44ca3b291] | committer: Francois Cartegnie
demux: nuv: fix divbyzero
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8908961a5c8cc6b992126073580782c44ca3b291
---
modules/demux/nuv.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/demux/nuv.c b/modules/demux/nuv.c
index 1e0bd69..1edc1fd 100644
--- a/modules/demux/nuv.c
+++ b/modules/demux/nuv.c
@@ -648,7 +648,8 @@ static int HeaderLoad( demux_t *p_demux, header_t *h )
h->d_fps, h->i_video_blocks, h->i_audio_blocks, h->i_text_blocks,
h->i_keyframe_distance );
#endif
- return VLC_SUCCESS;
+
+ return (h->d_fps) ? VLC_SUCCESS : VLC_EGENERIC;
}
/* FrameHeaderLoad:
More information about the vlc-commits
mailing list