changeset 2566:347da1903d92 libavformat

fix segfault with http://samples.mplayerhq.hu/nsv/nsv_samples/ot171_novideo.nsv.bz2 bug introduced in r8466 closes issue179
author michael
date Sat, 22 Sep 2007 08:55:17 +0000
parents c4a1b20d6081
children 069fc63f8bc6
files nsvdec.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/nsvdec.c	Fri Sep 21 18:23:46 2007 +0000
+++ b/nsvdec.c	Sat Sep 22 08:55:17 2007 +0000
@@ -609,6 +609,7 @@
             PRINT(("NSV video: [%d] = %02x\n", i, pkt->data[i]));
 */
     }
+    if(st[NSV_ST_VIDEO])
     ((NSVStream*)st[NSV_ST_VIDEO]->priv_data)->frame_offset++;
 
     if (asize/*st[NSV_ST_AUDIO]*/) {