# HG changeset patch # User reimar # Date 1252840139 0 # Node ID 06b0c8fd923f03edbbb8d8fb3ca9e9b998fb868e # Parent 44e53fe2e9ca44b85b27873b2e7dcaf2843c5de7 When resetting vst->pkt.data to NULL, also set vst->slices. This avoids a crash when the next slice is not a start slice and thus pkt->data is still NULL. This probably only happens with broken or unsupported files like http://samples.mplayerhq.hu/real/multirate/JustaSpa1937_64kb.rm that need further fixes, but keeping vst state consistent is still a good idea. diff -r 44e53fe2e9ca -r 06b0c8fd923f rmdec.c --- a/rmdec.c Sun Sep 13 08:57:30 2009 +0000 +++ b/rmdec.c Sun Sep 13 11:08:59 2009 +0000 @@ -637,6 +637,7 @@ pkt->size = vst->videobufpos + 8*(vst->cur_slice - vst->slices); pkt->pts = AV_NOPTS_VALUE; pkt->pos = vst->pktpos; + vst->slices = 0; return 0; }