OSDN Git Service

fraps: do not set avctx->pix_fmt to none in decode_init()
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Mon, 25 Apr 2011 20:08:15 +0000 (22:08 +0200)
committerStefano Sabatini <stefano.sabatini-lala@poste.it>
Mon, 25 Apr 2011 21:17:59 +0000 (23:17 +0200)
This is required for setting up the filterchain, as it requires the
pixel format to be set, which is usually done when probing the file
with av_find_stream_info().

Fix trac issue #83.

Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
libavcodec/fraps.c

index 8d40ed2..947c52e 100644 (file)
@@ -61,7 +61,6 @@ static av_cold int decode_init(AVCodecContext *avctx)
     FrapsContext * const s = avctx->priv_data;
 
     avctx->coded_frame = (AVFrame*)&s->frame;
-    avctx->pix_fmt= PIX_FMT_NONE; /* set in decode_frame */
 
     s->avctx = avctx;
     s->tmpbuf = NULL;