[MPlayer-cvslog] r35500 - trunk/libmpdemux/demux_avi.c
reimar
subversion at mplayerhq.hu
Wed Nov 28 20:23:03 CET 2012
Author: reimar
Date: Wed Nov 28 20:23:03 2012
New Revision: 35500
Log:
Do not decrement idx_pos if it is 0.
This can happen when the function is called from the open code.
Modified:
trunk/libmpdemux/demux_avi.c
Modified: trunk/libmpdemux/demux_avi.c
==============================================================================
--- trunk/libmpdemux/demux_avi.c Wed Nov 28 20:15:34 2012 (r35499)
+++ trunk/libmpdemux/demux_avi.c Wed Nov 28 20:23:03 2012 (r35500)
@@ -217,7 +217,8 @@ static void switch_to_ni(demuxer_t *demu
// has index
demux->type=DEMUXER_TYPE_AVI_NI;
demux->desc=&demuxer_desc_avi_ni;
- --priv->idx_pos; // hack
+ if (priv->idx_pos > 0)
+ --priv->idx_pos; // hack
} else {
// no index
demux->type=DEMUXER_TYPE_AVI_NINI;
More information about the MPlayer-cvslog
mailing list