Revision bdd745da libavcodec/mpegvideo_parser.c

View differences:

libavcodec/mpegvideo_parser.c
103 103
                                s->repeat_pict = 1;
104 104
                            }
105 105
                        }
106

  
107
                        /* the packet only represents half a frame
108
                           XXX,FIXME maybe find a different solution */
109
                        if(picture_structure != 3){
110
                            s->repeat_pict = -1;
111
                            s->parity = picture_structure-1;
112
                        }else
113
                            s->parity = !top_field_first;
114 106
                    }
115 107
                    break;
116 108
                }

Also available in: Unified diff