fix output_jpg for video files
This commit is contained in:
parent
67c50a0539
commit
97d1e2ed9d
2
video.go
2
video.go
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user