# HG changeset patch # User michael # Date 1114453746 0 # Node ID eaa57c3336fc5c8199a25b1399b446e1af44322e # Parent 337217ecbb3eff873aba35dc7c6a72ce2a32a51b PIX_FMT_NONE and related fixes diff -r 337217ecbb3e -r eaa57c3336fc asv1.c --- a/asv1.c Mon Apr 25 10:03:01 2005 +0000 +++ b/asv1.c Mon Apr 25 18:29:06 2005 +0000 @@ -557,6 +557,7 @@ common_init(avctx); init_vlcs(a); ff_init_scantable(a->dsp.idct_permutation, &a->scantable, scantab); + avctx->pix_fmt= PIX_FMT_YUV420P; a->inv_qscale= ((uint8_t*)avctx->extradata)[0]; if(a->inv_qscale == 0){ diff -r 337217ecbb3e -r eaa57c3336fc avcodec.h --- a/avcodec.h Mon Apr 25 10:03:01 2005 +0000 +++ b/avcodec.h Mon Apr 25 18:29:06 2005 +0000 @@ -17,7 +17,7 @@ #define FFMPEG_VERSION_INT 0x000409 #define FFMPEG_VERSION "0.4.9-pre1" -#define LIBAVCODEC_BUILD 4752 +#define LIBAVCODEC_BUILD 4753 #define LIBAVCODEC_VERSION_INT FFMPEG_VERSION_INT #define LIBAVCODEC_VERSION FFMPEG_VERSION @@ -206,6 +206,7 @@ * to run on the IBM VGA graphics adapter use 6-bit palette components. */ enum PixelFormat { + PIX_FMT_NONE= -1, PIX_FMT_YUV420P, ///< Planar YUV 4:2:0 (1 Cr & Cb sample per 2x2 Y samples) PIX_FMT_YUV422, ///< Packed pixel, Y0 Cb Y1 Cr PIX_FMT_RGB24, ///< Packed pixel, 3 bytes per pixel, RGBRGB... diff -r 337217ecbb3e -r eaa57c3336fc rv10.c --- a/rv10.c Mon Apr 25 10:03:01 2005 +0000 +++ b/rv10.c Mon Apr 25 18:29:06 2005 +0000 @@ -560,7 +560,9 @@ if(avctx->debug & FF_DEBUG_PICT_INFO){ av_log(avctx, AV_LOG_DEBUG, "ver:%X ver0:%X\n", avctx->sub_id, avctx->extradata_size >= 4 ? ((uint32_t*)avctx->extradata)[0] : -1); } - + + avctx->pix_fmt = PIX_FMT_YUV420P; + if (MPV_common_init(s) < 0) return -1; @@ -576,8 +578,6 @@ rv_chrom_code, 2, 2, 1); done = 1; } - - avctx->pix_fmt = PIX_FMT_YUV420P; return 0; } diff -r 337217ecbb3e -r eaa57c3336fc snow.c --- a/snow.c Mon Apr 25 10:03:01 2005 +0000 +++ b/snow.c Mon Apr 25 18:29:06 2005 +0000 @@ -3652,6 +3652,8 @@ { SnowContext *s = avctx->priv_data; int block_size; + + avctx->pix_fmt= PIX_FMT_YUV420P; common_init(avctx); diff -r 337217ecbb3e -r eaa57c3336fc utils.c --- a/utils.c Mon Apr 25 10:03:01 2005 +0000 +++ b/utils.c Mon Apr 25 18:29:06 2005 +0000 @@ -459,6 +459,7 @@ s->profile= FF_PROFILE_UNKNOWN; s->level= FF_LEVEL_UNKNOWN; s->me_penalty_compensation= 256; + s->pix_fmt= PIX_FMT_NONE; s->intra_quant_bias= FF_DEFAULT_QUANT_BIAS; s->inter_quant_bias= FF_DEFAULT_QUANT_BIAS;