]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/westwood_vqa.c
Merge commit 'fb845ffdd335a1efd6dfd43e8adeb530397b348e'
[ffmpeg] / libavformat / westwood_vqa.c
index 708f3e5fc382902bb250218fc2f30a61bfa9b697..c996dad8a256ff28468b43fbb81ab4a3063d1033 100644 (file)
@@ -233,7 +233,8 @@ static int wsvqa_read_packet(AVFormatContext *s,
                 switch (chunk_type) {
                 case SND1_TAG:
                     /* unpacked size is stored in header */
-                    pkt->duration = AV_RL16(pkt->data) / wsvqa->channels;
+                    if(pkt->data)
+                        pkt->duration = AV_RL16(pkt->data) / wsvqa->channels;
                     break;
                 case SND2_TAG:
                     /* 2 samples/byte, 1 or 2 samples per frame depending on stereo */