summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-04-17 03:15:54 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-04-17 04:04:56 +0200
commit89f86379797830870c5d499c0add1e1c9de9b70a (patch)
tree7878dcfe3e4a30bbca9414de9a777990bffe46c2 /ffmpeg.c
parent8a28fa010a3af47e08f4562063b6cb4fe5d8d3e1 (diff)
ffmpeg: fix regression with png
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index d1d1e737e9..3e20d44aa0 100644
--- a/ffmpeg.c
+++ b/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;