comparison svq1.c @ 924:3814e9115672 libavcodec

cleanup / messup? fixes 20% speedloss bug removes redundant variables from MpegEncContext release buffers in avcodec_flush_buffers() (untested)
author michaelni
date Mon, 09 Dec 2002 00:29:17 +0000
parents 22ee74da2cd3
children 7fccaa0d699d
comparison
equal deleted inserted replaced
923:3b5d9ecedc73 924:3814e9115672
1177 s->avctx = avctx; 1177 s->avctx = avctx;
1178 s->width = (avctx->width+3)&~3; 1178 s->width = (avctx->width+3)&~3;
1179 s->height = (avctx->height+3)&~3; 1179 s->height = (avctx->height+3)&~3;
1180 s->codec_id= avctx->codec->id; 1180 s->codec_id= avctx->codec->id;
1181 avctx->pix_fmt = PIX_FMT_YUV410P; 1181 avctx->pix_fmt = PIX_FMT_YUV410P;
1182 avctx->has_b_frames= s->has_b_frames=1; // not true, but DP frames and these behave like unidirectional b frames 1182 avctx->has_b_frames= 1; // not true, but DP frames and these behave like unidirectional b frames
1183 s->flags= avctx->flags; 1183 s->flags= avctx->flags;
1184 if (MPV_common_init(s) < 0) return -1; 1184 if (MPV_common_init(s) < 0) return -1;
1185 return 0; 1185 return 0;
1186 } 1186 }
1187 1187