changeset 1348:8f613147c6cb libavcodec

mpeg 2 seeking fix
author michaelni
date Mon, 07 Jul 2003 11:25:31 +0000
parents cca26199ab17
children 89e6c3ce263a
files mpeg12.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mpeg12.c	Mon Jul 07 11:19:18 2003 +0000
+++ b/mpeg12.c	Mon Jul 07 11:25:31 2003 +0000
@@ -2304,6 +2304,9 @@
                     mpeg_decode_user_data(avctx, 
                                           buf_ptr, input_size);
                     break;
+                case GOP_START_CODE:
+                    s2->first_field=0;
+                    break;
                 default:
                     if (start_code >= SLICE_MIN_START_CODE &&
                         start_code <= SLICE_MAX_START_CODE) {