summaryrefslogtreecommitdiff
path: root/libavcodec/tmv.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/tmv.c')
-rw-r--r--libavcodec/tmv.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/libavcodec/tmv.c b/libavcodec/tmv.c
index 424cddf84d..7eb9b6903a 100644
--- a/libavcodec/tmv.c
+++ b/libavcodec/tmv.c
@@ -34,14 +34,6 @@ typedef struct TMVContext {
AVFrame pic;
} TMVContext;
-static av_cold int tmv_decode_init(AVCodecContext *avctx)
-{
- TMVContext *tmv = avctx->priv_data;
-
- avcodec_get_frame_defaults(&tmv->pic);
- return 0;
-}
-
static int tmv_decode_frame(AVCodecContext *avctx, void *data,
int *data_size, AVPacket *avpkt)
{
@@ -90,6 +82,14 @@ static int tmv_decode_frame(AVCodecContext *avctx, void *data,
return avpkt->size;
}
+static av_cold int tmv_decode_init(AVCodecContext *avctx)
+{
+ TMVContext *tmv = avctx->priv_data;
+ avctx->pix_fmt = PIX_FMT_PAL8;
+ avcodec_get_frame_defaults(&tmv->pic);
+ return 0;
+}
+
static av_cold int tmv_decode_close(AVCodecContext *avctx)
{
TMVContext *tmv = avctx->priv_data;