mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-03 14:32:16 +02:00
ffmpeg: fix regression with png
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
8a28fa010a
commit
89f8637979
2
ffmpeg.c
2
ffmpeg.c
@ -702,7 +702,7 @@ static enum PixelFormat choose_pixel_fmt(AVStream *st, AVCodec *codec, enum Pixe
|
||||
static const enum PixelFormat *choose_pixel_fmts(OutputStream *ost)
|
||||
{
|
||||
if (ost->st->codec->pix_fmt != PIX_FMT_NONE) {
|
||||
ost->pix_fmts[0] = ost->st->codec->pix_fmt;
|
||||
ost->pix_fmts[0] = choose_pixel_fmt(ost->st, ost->enc, ost->st->codec->pix_fmt);
|
||||
return ost->pix_fmts;
|
||||
} else if (ost->enc->pix_fmts)
|
||||
return ost->enc->pix_fmts;
|
||||
|
Loading…
x
Reference in New Issue
Block a user