[Ffmpeg-cvslog] r7442 - in trunk/libavcodec: h263.c mpegvideo.c
michael
subversion
Sat Jan 13 03:45:06 CET 2007
Author: michael
Date: Sat Jan 13 03:45:05 2007
New Revision: 7442
Modified:
trunk/libavcodec/h263.c
trunk/libavcodec/mpegvideo.c
Log:
some interlaced direct sanity checks
Modified: trunk/libavcodec/h263.c
==============================================================================
--- trunk/libavcodec/h263.c (original)
+++ trunk/libavcodec/h263.c Sat Jan 13 03:45:05 2007
@@ -5928,6 +5928,10 @@
- ROUNDED_DIV(s->last_non_b_time - s->pp_time, s->t_frame))*2;
s->pb_field_time= ( ROUNDED_DIV(s->time, s->t_frame)
- ROUNDED_DIV(s->last_non_b_time - s->pp_time, s->t_frame))*2;
+ if(!s->progressive_sequence){
+ if(s->pp_field_time <= s->pb_field_time || s->pb_field_time <= 1)
+ return FRAME_SKIPPED;
+ }
}
//av_log(s->avctx, AV_LOG_DEBUG, "last nonb %"PRId64" last_base %d time %"PRId64" pp %d pb %d t %d ppf %d pbf %d\n", s->last_non_b_time, s->last_time_base, s->time, s->pp_time, s->pb_time, s->t_frame, s->pp_field_time, s->pb_field_time);
Modified: trunk/libavcodec/mpegvideo.c
==============================================================================
--- trunk/libavcodec/mpegvideo.c (original)
+++ trunk/libavcodec/mpegvideo.c Sat Jan 13 03:45:05 2007
@@ -4630,6 +4630,7 @@
s->parse_context.index= 0;
s->parse_context.last_index= 0;
s->bitstream_buffer_size=0;
+ s->pp_time=0;
}
#ifdef CONFIG_ENCODERS
More information about the ffmpeg-cvslog
mailing list