smjpeg: fix type of 'ret' variable in smjpeg_read_packet()