I start to learn Multimedia API with sample code with my USB camera (MJPEG mode VGA 640x480).
When I generate JPEG files and try to decode these files frame by frame,
Jpeg decode sample code (or libnvjpeg) returns “Premature end of JPEG file”(JWRN_JPEG_EOF).
However, when I try to decode these files in Ubuntu 16.04 desktop, sw decoder normally done without any error.
Seems not related to the size of image.
Not always happen. around 75% (75files/100files) on Jetson TX1. 0% on desktop.
Any suggestion is welcome.
decodeToBuffer()@jpeg_decode_main.cpp returns 0 (but NvJPEGDecorder::decodeToBuffer almost always return 0)
JMESSAGE(JWRN_JPEG_EOF, “Premature end of JPEG file”)