Hello!

Sorry for my bad English.

Jpeg video rtp source works fine for jpeg with two quantization tables. But
I am trying to play motion jpeg video using vlc with only one quantization
table. So there are some bugs in jpeg video rtp source. Jpeg header size is
evaluated incorrectly. Index of quantization table is evaluated incorrectly
for third component.

You can find example of jpeg file with only one quantization table and patch
file for jpeg video rtp source in attach to fix it.

<<attachment: 1.jpg>>

174c174,176
<   return 495 + qtlen_half*2 + (dri > 0 ? 6 : 0);
---
>   qtlen = qtlen_half * 2;
>   unsigned numQtables = qtlen > 64 ? 2 : 1;
>   return 485 + numQtables*5 + qtlen + (dri > 0 ? 6 : 0);
241c243
<   *ptr++ = 0x01; // quant table id
---
>   *ptr++ = numQtables == 1 ? 0x00 : 0x01; // quant table id
_______________________________________________
live-devel mailing list
live-devel@lists.live555.com
http://lists.live555.com/mailman/listinfo/live-devel

Reply via email to