React faster only with mpeg.

This commit is contained in:
Johns 2013-01-11 18:54:45 +01:00
parent 1a730ef90b
commit 308742a927

View File

@ -2121,15 +2121,15 @@ int PlayVideo3(VideoStream * stream, const uint8_t * data, int size)
if (stream->CodecID == CODEC_ID_MPEG2VIDEO) {
// SKIP PES header
VideoMpegEnqueue(stream, pts, data + 9 + n, size - 9 - n);
} else {
// SKIP PES header
VideoEnqueue(stream, pts, data + 9 + n, size - 9 - n);
}
if (size < 65526) {
// mpeg codec supports incomplete packets
// waiting for a full complete packages, increases needed delays
VideoNextPacket(stream, stream->CodecID);
}
} else {
// SKIP PES header
VideoEnqueue(stream, pts, data + 9 + n, size - 9 - n);
}
#else
// SKIP PES header
VideoEnqueue(stream, pts, data + 9 + n, size - 9 - n);
@ -2282,6 +2282,7 @@ int SetPlayMode(int play_mode)
}
}
switch (play_mode) {
case 0: // nothing
case 1: // audio/video from player
break;
case 2: // audio only