#309 ffdshow play MJPEG avi file show corrupt image

open
nobody
None
5
2012-04-10
2012-04-10
holy
No

Hello,

I find issue when I use ffdshow to play MJPEG avi file, but I use the other codec to play MJPEG avi file is no problem.

I have further analysis issue, due to our JPEG file provide restart marker.

Restart marker are placed on byte boundaries. Any fractional bits input stream that have not been used are discarded before the restart marker(RST0 ~ RST7).

I fill 0 in any fractional bits cause ffdshow decode MJPEG avi file show corrupt image.

I try to fill 1 in any fractional bits, the ffdshow decode MJPEG avi file show correct image.

Thanks.

Discussion

  • h.yamagata

    h.yamagata - 2012-04-10

    Would you upload a sample video?

     
  • holy

    holy - 2012-04-11
     
  • holy

    holy - 2012-04-11

    I have uploaded sample video, thanks.

     
  • h.yamagata

    h.yamagata - 2012-04-12

    I've got the sample video. Thank you.
    I'll take a look when I have time.

     

Log in to post a comment.