Mercurial > libavcodec.hg
comparison pgssubdec.c @ 12136:31bca176d2d9 libavcodec
Set pix_fmt to the correct value for the format the PGS decoder actually uses.
author | reimar |
---|---|
date | Sun, 11 Jul 2010 07:48:04 +0000 |
parents | d5705b52b76e |
children | d46c4c3204b8 |
comparison
equal
deleted
inserted
replaced
12135:0f987eea1349 | 12136:31bca176d2d9 |
---|---|
62 PGSSubPicture picture; | 62 PGSSubPicture picture; |
63 } PGSSubContext; | 63 } PGSSubContext; |
64 | 64 |
65 static av_cold int init_decoder(AVCodecContext *avctx) | 65 static av_cold int init_decoder(AVCodecContext *avctx) |
66 { | 66 { |
67 avctx->pix_fmt = PIX_FMT_RGB32; | 67 avctx->pix_fmt = PIX_FMT_PAL8; |
68 | 68 |
69 return 0; | 69 return 0; |
70 } | 70 } |
71 | 71 |
72 static av_cold int close_decoder(AVCodecContext *avctx) | 72 static av_cold int close_decoder(AVCodecContext *avctx) |