passing a filename with incorrect encoding to avformat_open_input. Increased the size of photo thumbnails a little.