summaryrefslogtreecommitdiff
path: root/libavcodec/tmv.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-12-19 02:11:50 +0100
committerMichael Niedermayer <michaelni@gmx.at>2011-12-19 02:34:18 +0100
commit7c29313b387392fa305365e855fa408cd28c276e (patch)
tree328f30ad4a4e6b606bbbffc1f15f22d2044affb3 /libavcodec/tmv.c
parentf371396dfb95c116a05e9b9f690fa916bb2d815e (diff)
parent2a216ca2ef29282cac9003a716b469b8c80c0a15 (diff)
Merge remote-tracking branch 'qatar/master'
* qatar/master: APIchanges: fill in revision for AVFrame.age deprecation avcodec: deprecate AVFrame.age 4xm: remove unneeded check for remaining unused data. lavf: force threads to 1 in avformat_find_stream_info() swscale: fix overflows in vertical scaling at top/bottom edges. lavf: add OpenMG audio muxer. omadec: split data that will be used in the muxer to a separate file. lavf: rename oma.c -> omadec.c tmv decoder: set correct pix_fmt Conflicts: Changelog doc/APIchanges libavcodec/mpegvideo.c libavcodec/version.h libavformat/oma.c libavformat/version.h libswscale/swscale.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
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;