Revision 80516d72 libavcodec/mpegvideo.c

View differences:

libavcodec/mpegvideo.c
2015 2015
                for(i=0; i<s->max_b_frames+1; i++){
2016 2016
                    int pict_num= s->input_picture[0]->display_picture_number + i;
2017 2017
                    int pict_type= s->rc_context.entry[pict_num].new_pict_type;
2018

  
2019
                    if(!s->input_picture[i]){
2020
                        if(i>0)
2021
                            s->rc_context.entry[pict_num-1].new_pict_type = P_TYPE;
2022
                        break;
2023
                    }
2018 2024
                    s->input_picture[i]->pict_type= pict_type;
2019 2025
                    
2020 2026
                    if(i + 1 >= s->rc_context.num_entries) break;

Also available in: Unified diff