summaryrefslogtreecommitdiff
path: root/libavformat/nsvdec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2007-09-22 08:55:17 +0000
committerMichael Niedermayer <michaelni@gmx.at>2007-09-22 08:55:17 +0000
commit638f489ccdab61ab2019601c6f7ec58ecaedc18d (patch)
treed24518d988694711880513d5ad2afc440a5a9458 /libavformat/nsvdec.c
parentc2675d4a69899998dcfa95b85eb63a7fa393e29f (diff)
fix segfault with http://samples.mplayerhq.hu/nsv/nsv_samples/ot171_novideo.nsv.bz2
bug introduced in r8466 closes issue179 Originally committed as revision 10544 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/nsvdec.c')
-rw-r--r--libavformat/nsvdec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/nsvdec.c b/libavformat/nsvdec.c
index d0ba839edc..88187f236c 100644
--- a/libavformat/nsvdec.c
+++ b/libavformat/nsvdec.c
@@ -609,6 +609,7 @@ null_chunk_retry:
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]*/) {