[FFmpeg-cvslog] mpeg12: remove repeat-field code disabled since May 2002

Dustin Brody git at videolan.org
Mon Aug 15 23:55:49 CEST 2011


ffmpeg | branch: master | Dustin Brody <libav at parsoma.net> | Fri Aug 12 01:30:20 2011 -0400| [2bfdb34c8a61c96042752dac18499ce8381c1e69] | committer: Diego Biurrun

mpeg12: remove repeat-field code disabled since May 2002

Signed-off-by: Diego Biurrun <diego at biurrun.de>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2bfdb34c8a61c96042752dac18499ce8381c1e69
---

 avconv.c            |    2 --
 ffmpeg.c            |    2 --
 libavcodec/mpeg12.c |   12 ------------
 3 files changed, 0 insertions(+), 16 deletions(-)

diff --git a/avconv.c b/avconv.c
index 74db59f..9df4779 100644
--- a/avconv.c
+++ b/avconv.c
@@ -2295,8 +2295,6 @@ static int transcode(AVFormatContext **output_files,
             }
             assert_codec_experimental(ist->st->codec, 0);
             assert_avoptions(ost->opts);
-            //if (ist->st->codec->codec_type == AVMEDIA_TYPE_VIDEO)
-            //    ist->st->codec->flags |= CODEC_FLAG_REPEAT_FIELD;
         }
     }
 
diff --git a/ffmpeg.c b/ffmpeg.c
index 079384b..1443dd3 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2391,8 +2391,6 @@ static int transcode(AVFormatContext **output_files,
             }
             assert_codec_experimental(ist->st->codec, 0);
             assert_avoptions(ost->opts);
-            //if (ist->st->codec->codec_type == AVMEDIA_TYPE_VIDEO)
-            //    ist->st->codec->flags |= CODEC_FLAG_REPEAT_FIELD;
         }
     }
 
diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c
index cb3b815..91eb3f5 100644
--- a/libavcodec/mpeg12.c
+++ b/libavcodec/mpeg12.c
@@ -2260,18 +2260,6 @@ static int mpeg_decode_frame(AVCodecContext *avctx,
             return buf_size;
     }
 
-#if 0
-    if (s->repeat_field % 2 == 1) {
-        s->repeat_field++;
-        //fprintf(stderr,"\nRepeating last frame: %d -> %d! pict: %d %d", avctx->frame_number-1, avctx->frame_number,
-        //        s2->picture_number, s->repeat_field);
-        if (avctx->flags & CODEC_FLAG_REPEAT_FIELD) {
-            *data_size = sizeof(AVPicture);
-            goto the_end;
-        }
-    }
-#endif
-
     if(s->mpeg_enc_ctx_allocated==0 && avctx->codec_tag == AV_RL32("VCR2"))
         vcr2_init_sequence(avctx);
 



More information about the ffmpeg-cvslog mailing list