Commit b12b7cd6 authored by iive's avatar iive

cola test


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@3089 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 3d5b8e87
......@@ -358,14 +358,10 @@ static inline void encode_mb_skip_run(MpegEncContext *s, int run){
static void common_init(MpegEncContext *s)
{
int i;
s->y_dc_scale_table=
s->c_dc_scale_table= ff_mpeg1_dc_scale_table;
if(!s->encoding)
for(i=0;i<64;i++)
s->dsp.idct_permutation[i]=i;
}
void ff_mpeg1_clean_buffers(MpegEncContext *s){
......@@ -1763,7 +1759,14 @@ static int mpeg_decode_init(AVCodecContext *avctx)
{
Mpeg1Context *s = avctx->priv_data;
MpegEncContext *s2 = &s->mpeg_enc_ctx;
int i;
//we need some parmutation to store
//matrixes, until MPV_common_init()
//set the real permutatuon
for(i=0;i<64;i++)
s2->dsp.idct_permutation[i]=i;
MPV_decode_defaults(s2);
s->mpeg_enc_ctx.avctx= avctx;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment