fix output_jpg for video files

This commit is contained in:
mappu 2016-12-05 21:55:28 +13:00
parent 67c50a0539
commit 97d1e2ed9d

View File

@ -20,7 +20,7 @@ func (this *Thumbnailer) RenderScaledFfmpeg(absPath string) ([]byte, error) {
var vcodec string var vcodec string
switch this.ofmt { switch this.ofmt {
case OUTPUT_JPG: case OUTPUT_JPG:
vcodec = "jpg" vcodec = "mjpeg" // yes really
case OUTPUT_PNG_CRUSH: case OUTPUT_PNG_CRUSH:
vcodec = "png" vcodec = "png"
default: default: