summaryrefslogtreecommitdiff
path: root/libavcodec/mpeg12.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2004-03-13 22:01:32 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-03-13 22:01:32 +0000
commit8be014e027f9c023a45a707c2d77de8d0e5ba79d (patch)
tree17c431be959f984ec05a2679504e9c218533b97d /libavcodec/mpeg12.c
parent68951ecf0ced82b33f84d8ec79984d87291c93dc (diff)
removing broken mpeg_decode_gop()
Originally committed as revision 2883 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpeg12.c')
-rw-r--r--libavcodec/mpeg12.c33
1 files changed, 1 insertions, 32 deletions
diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c
index 28a6791f30..6b7b32fe7b 100644
--- a/libavcodec/mpeg12.c
+++ b/libavcodec/mpeg12.c
@@ -2586,37 +2586,6 @@ static void mpeg_decode_user_data(AVCodecContext *avctx,
}
}
-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 @@ static int mpeg_decode_frame(AVCodecContext *avctx,
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 &&