[FFmpeg-cvslog] r26090 - trunk/libavcodec/mpegvideo.c
michael
subversion
Sat Dec 25 20:49:19 CET 2010
Author: michael
Date: Sat Dec 25 20:49:19 2010
New Revision: 26090
Log:
Simplify tff setting code in MPV_frame_start().
Modified:
trunk/libavcodec/mpegvideo.c
Modified: trunk/libavcodec/mpegvideo.c
==============================================================================
--- trunk/libavcodec/mpegvideo.c Sat Dec 25 20:49:15 2010 (r26089)
+++ trunk/libavcodec/mpegvideo.c Sat Dec 25 20:49:19 2010 (r26090)
@@ -964,13 +964,11 @@ int MPV_frame_start(MpegEncContext *s, A
s->current_picture_ptr= pic;
//FIXME use only the vars from current_pic
+ s->current_picture_ptr->top_field_first= s->top_field_first;
if(s->codec_id == CODEC_ID_MPEG1VIDEO || s->codec_id == CODEC_ID_MPEG2VIDEO) {
- if(s->picture_structure == PICT_FRAME)
- s->current_picture_ptr->top_field_first= s->top_field_first;
- else
+ if(s->picture_structure != PICT_FRAME)
s->current_picture_ptr->top_field_first= (s->picture_structure == PICT_TOP_FIELD) == s->first_field;
- } else
- s->current_picture_ptr->top_field_first= s->top_field_first;
+ }
s->current_picture_ptr->interlaced_frame= !s->progressive_frame && !s->progressive_sequence;
}
More information about the ffmpeg-cvslog
mailing list