jpegdec: actually search for and parse RSTn
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 9 Jun 2011 01:35:50 +0000 (03:35 +0200)
committerReinhard Tartler <siretart@tauware.de>
Sun, 21 Aug 2011 09:08:27 +0000 (11:08 +0200)
commit00c5cf4beb0e45e936544a5766b56e241ae03234
treeee4aab975f08f3128dc85280963af8a81b855274
parenta05219d801cdf0fd83301e893301e9f6ba0ab6ed
jpegdec: actually search for and parse RSTn

Fixes decoding of MJPEG files produced by some UVC Logitec web cameras,
such as "Notebook Pro" and "HD C910".

References:
http://trac.videolan.org/vlc/ticket/4215
http://ffmpeg.org/trac/ffmpeg/ticket/267

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Reviewed-by: Kostya <kostya.shishkov@gmail.com>
(cherry picked from commit 8c0fa61a9713a1306fca7997dd04d72ea1f060ea)
libavcodec/mjpegdec.c