Mercurial > mplayer.hg
changeset 35406:f9ca8fab7fa6
Do not decrement idx_pos if it is 0.
This can happen when the function is called from the open code.
author | reimar |
---|---|
date | Wed, 28 Nov 2012 19:23:03 +0000 |
parents | d6305a78a11e |
children | 5f5193521c20 |
files | libmpdemux/demux_avi.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/demux_avi.c Wed Nov 28 19:15:34 2012 +0000 +++ b/libmpdemux/demux_avi.c Wed Nov 28 19:23:03 2012 +0000 @@ -217,7 +217,8 @@ // 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;