Set pix_fmt to the correct value for the format the PGS decoder actually uses.
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Sun, 11 Jul 2010 07:48:04 +0000 (07:48 +0000)
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>
Sun, 11 Jul 2010 07:48:04 +0000 (07:48 +0000)
Originally committed as revision 24187 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/pgssubdec.c

index bf2de6a..bda7665 100644 (file)
@@ -64,7 +64,7 @@ typedef struct PGSSubContext {
 
 static av_cold int init_decoder(AVCodecContext *avctx)
 {
-    avctx->pix_fmt     = PIX_FMT_RGB32;
+    avctx->pix_fmt = PIX_FMT_PAL8;
 
     return 0;
 }