# HG changeset patch # User michael # Date 1203539078 0 # Node ID ca7cacd556ff12c83a2d2e631028f95e67615411 # Parent 83a04925520da0b8378a7b3f32ed204318cafca7 revert 12156 Log: Make timestamp interpolation work with mpeg2 field pictures. Cleaner/simpler solutions are welcome. ---- A IMHO cleaner solution has been implemented. diff -r 83a04925520d -r ca7cacd556ff avcodec.h --- a/avcodec.h Wed Feb 20 19:48:25 2008 +0000 +++ b/avcodec.h Wed Feb 20 20:24:38 2008 +0000 @@ -2788,7 +2788,6 @@ /* video info */ int pict_type; /* XXX: Put it back in AVCodecContext. */ int repeat_pict; /* XXX: Put it back in AVCodecContext. */ - int parity; int64_t pts; /* pts of the current frame */ int64_t dts; /* dts of the current frame */ diff -r 83a04925520d -r ca7cacd556ff mpegvideo_parser.c --- a/mpegvideo_parser.c Wed Feb 20 19:48:25 2008 +0000 +++ b/mpegvideo_parser.c Wed Feb 20 20:24:38 2008 +0000 @@ -36,7 +36,6 @@ int horiz_size_ext, vert_size_ext, bit_rate_ext; //FIXME replace the crap with get_bits() s->repeat_pict = 0; - s->parity = 0; buf_end = buf + buf_size; while (buf < buf_end) { start_code= -1;