summaryrefslogtreecommitdiff
path: root/src/post/planar/expand.c
diff options
context:
space:
mode:
authorMichael Roitzsch <mroi@users.sourceforge.net>2003-08-12 13:56:25 +0000
committerMichael Roitzsch <mroi@users.sourceforge.net>2003-08-12 13:56:25 +0000
commiteb8339e2b2719c63eeac10f3ec4df4c86d4b38ce (patch)
treedb23c54ff9c2460af2d793788940db5a9ff7fcac /src/post/planar/expand.c
parentf8fb6933244e2e494052c840bdd7dd9d66ed8512 (diff)
downloadxine-lib-eb8339e2b2719c63eeac10f3ec4df4c86d4b38ce.tar.gz
xine-lib-eb8339e2b2719c63eeac10f3ec4df4c86d4b38ce.tar.bz2
handle frame flags properly, small aspect ratio fix for expand
CVS patchset: 5277 CVS date: 2003/08/12 13:56:25
Diffstat (limited to 'src/post/planar/expand.c')
-rw-r--r--src/post/planar/expand.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/post/planar/expand.c b/src/post/planar/expand.c
index f585a22ce..b9dcc9ee8 100644
--- a/src/post/planar/expand.c
+++ b/src/post/planar/expand.c
@@ -236,12 +236,12 @@ static int expand_draw(vo_frame_t *frame, xine_stream_t *stream)
int size, i, skip, new_height, border_height;
/* Calculate height of expanded frame */
- new_height = (double) frame->width * frame->ratio * 3.0 / 4.0;
+ new_height = (double) frame->height * frame->ratio * 3.0 / 4.0;
new_height = (new_height + 1) & ~1;
if(new_height > frame->height) {
expanded_frame = port->original_port->get_frame(port->original_port,
- frame->width, new_height, frame->ratio, frame->format, VO_BOTH_FIELDS);
+ frame->width, new_height, 4.0 / 3.0, frame->format, frame->flags | VO_BOTH_FIELDS);
expanded_frame->pts = frame->pts;
expanded_frame->duration = frame->duration;
expanded_frame->bad_frame = frame->bad_frame;