diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-04-17 03:15:54 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-04-17 04:04:56 +0200 |
commit | 89f86379797830870c5d499c0add1e1c9de9b70a (patch) | |
tree | 7878dcfe3e4a30bbca9414de9a777990bffe46c2 /ffmpeg.c | |
parent | 8a28fa010a3af47e08f4562063b6cb4fe5d8d3e1 (diff) |
ffmpeg: fix regression with png
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |