Patch by Baptiste Coudurier, baptiste _ coudurier at smartjog _ com.
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@4885
9553f0bf-9b14-0410-a0b8-
cfaf0461ba5b
s->width = width;
s->height = height;
- avcodec_set_dimensions(s->avctx, width, height);
/* test interlaced mode */
if (s->first_picture &&
s->interlaced = 1;
// s->bottom_field = (s->interlace_polarity) ? 1 : 0;
s->bottom_field = 0;
- s->avctx->height *= 2;
+ height *= 2;
}
+ avcodec_set_dimensions(s->avctx, width, height);
+
s->qscale_table= av_mallocz((s->width+15)/16);
s->first_picture = 0;