astrange <[EMAIL PROTECTED]> added the comment:

Attaching the patch gives me an internal error.

Index: libavcodec/h264.c
===================================================================
--- libavcodec/h264.c   (revision 14829)
+++ libavcodec/h264.c   (working copy)
@@ -3307,9 +3307,12 @@
             for(j = 0; j < 16; j++) {
                 remove_long(h, j, 0);
             }
+            for(j = 0; j < 2; j++) {
+                if(s->current_picture_ptr->field_poc[j] != INT_MAX)
+                    s->current_picture_ptr->field_poc[j] = 0;
+            }
+
             s->current_picture_ptr->poc=
-            s->current_picture_ptr->field_poc[0]=
-            s->current_picture_ptr->field_poc[1]=
             h->poc_lsb=
             h->poc_msb=
             h->frame_num=

______________________________________________________
FFmpeg issue tracker <[EMAIL PROTECTED]>
<https://roundup.mplayerhq.hu/roundup/ffmpeg/issue583>
______________________________________________________

Reply via email to