Make RealAudio P frames reference the previous I or P frame, not the previous I frame.

This commit is contained in:
Moritz Bunkus 2003-10-12 14:51:22 +00:00
parent a33c7c7426
commit 92213609d7

View File

@ -608,11 +608,11 @@ int real_reader_c::read(generic_packetizer_c *) {
dmx->c_keyframe ? -1 : dmx->c_reftimecode);
dmx->c_data = chunk;
dmx->c_len = length;
dmx->c_reftimecode = dmx->c_timecode;
dmx->c_timecode = timecode;
if ((flags & 2) == 2) {
if ((flags & 2) == 2)
dmx->c_keyframe = true;
dmx->c_reftimecode = timecode;
} else
else
dmx->c_keyframe = false;
dmx->c_numpackets++;
} else {