changeset 1880:56ccec0d08bd libavcodec

removing broken mpeg_decode_gop()
author michael
date Sat, 13 Mar 2004 22:01:32 +0000
parents dd63cb7e5080
children 39ad6cd5d4a6
files mpeg12.c
diffstat 1 files changed, 1 insertions(+), 32 deletions(-) [+]
line wrap: on
line diff
--- a/mpeg12.c	Sat Mar 13 21:43:24 2004 +0000
+++ b/mpeg12.c	Sat Mar 13 22:01:32 2004 +0000
@@ -2586,37 +2586,6 @@
     }
 }
 
-static void mpeg_decode_gop(AVCodecContext *avctx, 
-                            const uint8_t *buf, int buf_size){
-    Mpeg1Context *s1 = avctx->priv_data;
-    MpegEncContext *s = &s1->mpeg_enc_ctx;
-
-    int drop_frame_flag;
-    int time_code_hours, time_code_minutes;
-    int time_code_seconds, time_code_pictures;
-    int broken_link;
-
-    s->first_field = 0;
-
-    init_get_bits(&s->gb, buf, buf_size*8);
-
-    drop_frame_flag = get_bits1(&s->gb);
-    
-    time_code_hours=get_bits(&s->gb,5);
-    time_code_minutes = get_bits(&s->gb,6);
-    skip_bits1(&s->gb);//marker bit
-    time_code_seconds = get_bits(&s->gb,6);
-    time_code_pictures = get_bits(&s->gb,6);
-    /*broken_link indicate that after editing the
-      reference frames of the first B-Frames after GOP I-Frame
-      are missing (open gop)*/
-    broken_link = get_bits1(&s->gb);
-    if(broken_link == 1){
-//        avcodec_flush_buffers(avctx);
-        ff_mpeg_flush(avctx);
-    }
-}
-
 /**
  * finds the end of the current frame in the bitstream.
  * @return the position of the first byte of the next frame, or -1
@@ -2754,7 +2723,7 @@
                                           buf_ptr, input_size);
                     break;
                 case GOP_START_CODE:
-    	            mpeg_decode_gop(avctx, buf_ptr, input_size);
+                    s2->first_field=0;
                     break;
                 default:
                     if (start_code >= SLICE_MIN_START_CODE &&