Revision fa37cf0d

View differences:

libavcodec/h264.c
1777 1777
    }
1778 1778
    h->sps = *h0->sps_buffers[h->pps.sps_id];
1779 1779

  
1780
    s->avctx->profile = h->sps.profile_idc;
1781
    s->avctx->level   = h->sps.level_idc;
1780 1782
    s->avctx->refs= h->sps.ref_frame_count;
1781 1783

  
1782 1784
    if(h == h0 && h->dequant_coeff_pps != pps_id){
......
2818 2820
            if((err = decode_slice_header(hx, h)))
2819 2821
               break;
2820 2822

  
2821
            avctx->profile = hx->sps.profile_idc;
2822
            avctx->level   = hx->sps.level_idc;
2823

  
2824 2823
            if (h->current_slice == 1) {
2825 2824
                if (s->avctx->hwaccel && s->avctx->hwaccel->start_frame(s->avctx, NULL, 0) < 0)
2826 2825
                    return -1;
......
2856 2855
            if ((err = decode_slice_header(hx, h)) < 0)
2857 2856
                break;
2858 2857

  
2859
            avctx->profile = hx->sps.profile_idc;
2860
            avctx->level   = hx->sps.level_idc;
2861

  
2862 2858
            hx->s.data_partitioning = 1;
2863 2859

  
2864 2860
            break;

Also available in: Unified diff