From 9dad924e22dc0e1a09013b588b43051b5baf428d Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 20 Oct 2003 10:33:13 +0000 Subject: bottom_field_first -> top_field_first Originally committed as revision 2402 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/avcodec.h | 8 ++++---- libavcodec/dv.c | 2 +- libavformat/yuv4mpeg.c | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 542200f7a1..f6c052a04b 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -15,7 +15,7 @@ extern "C" { #define FFMPEG_VERSION_INT 0x000408 #define FFMPEG_VERSION "0.4.8" -#define LIBAVCODEC_BUILD 4685 +#define LIBAVCODEC_BUILD 4686 #define LIBAVCODEC_VERSION_INT FFMPEG_VERSION_INT #define LIBAVCODEC_VERSION FFMPEG_VERSION @@ -436,11 +436,11 @@ typedef struct AVPanScan{ int interlaced_frame;\ \ /**\ - * if the content is interlaced, is bottom field displayed first.\ + * if the content is interlaced, is top field displayed first.\ * - encoding: set by user\ - * - decoding: set by lavc (default 0)\ + * - decoding: set by lavc\ */\ - int bottom_field_first;\ + int top_field_first;\ \ /**\ * Pan scan.\ diff --git a/libavcodec/dv.c b/libavcodec/dv.c index 419d2de524..c969e937ba 100644 --- a/libavcodec/dv.c +++ b/libavcodec/dv.c @@ -855,7 +855,7 @@ static int dvvideo_decode_frame(AVCodecContext *avctx, return -1; } s->picture.interlaced_frame = 1; - s->picture.bottom_field_first = 1; + s->picture.top_field_first = 0; /* for each DIF segment */ mb_pos_ptr = s->sys->video_place; diff --git a/libavformat/yuv4mpeg.c b/libavformat/yuv4mpeg.c index c6e062051b..e9f08c8343 100644 --- a/libavformat/yuv4mpeg.c +++ b/libavformat/yuv4mpeg.c @@ -54,7 +54,7 @@ static int yuv4_generate_header(AVFormatContext *s, char* buf) inter = 'p'; /* progressive is the default */ if (st->codec.coded_frame && st->codec.coded_frame->interlaced_frame) { - inter = st->codec.coded_frame->bottom_field_first ? 'b' : 't'; + inter = st->codec.coded_frame->top_field_first ? 't' : 'b'; } /* construct stream header, if this is the first frame */ -- cgit v1.2.3