comparison rtmpproto.c @ 6055:1e49d06baf93 libavformat

24l trocadero: RTMP reader forgot to shift high byte of timestamp to its proper position Patch by trueice (his gmail account is obvious)
author kostya
date Tue, 25 May 2010 07:01:04 +0000
parents 178de7695c6c
children 7fdda2416684
comparison
equal deleted inserted replaced
6054:a198eb01f895 6055:1e49d06baf93
750 while (next - rpkt.data < rpkt.data_size - 11) { 750 while (next - rpkt.data < rpkt.data_size - 11) {
751 next++; 751 next++;
752 data_size = bytestream_get_be24(&next); 752 data_size = bytestream_get_be24(&next);
753 p=next; 753 p=next;
754 cts = bytestream_get_be24(&next); 754 cts = bytestream_get_be24(&next);
755 cts |= bytestream_get_byte(&next); 755 cts |= bytestream_get_byte(&next) << 24;
756 if (pts==0) 756 if (pts==0)
757 pts=cts; 757 pts=cts;
758 ts += cts - pts; 758 ts += cts - pts;
759 pts = cts; 759 pts = cts;
760 bytestream_put_be24(&p, ts); 760 bytestream_put_be24(&p, ts);