Must guard CodecVideoDecode.

This commit is contained in:
Johns 2013-01-08 23:52:41 +01:00
parent 3366faece2
commit d59c2ad40b

View File

@ -1793,7 +1793,9 @@ int VideoDecodeInput(VideoStream * stream)
//DumpMpeg(avpkt->data, avpkt->size);
// lock decoder against close
pthread_mutex_lock(&stream->DecoderLockMutex);
CodecVideoDecode(stream->Decoder, avpkt);
if (stream->Decoder) {
CodecVideoDecode(stream->Decoder, avpkt);
}
pthread_mutex_unlock(&stream->DecoderLockMutex);
//fprintf(stderr, "]\n");
#else