Revision 09b0499f libavcodec/huffyuv.c

View differences:

libavcodec/huffyuv.c
644 644
            s->stats[0][ s->temp[0][2*i+1] ]++;
645 645
            s->stats[2][ s->temp[2][  i  ] ]++;
646 646
        }
647
    }else if(s->context){
647
    }
648
    if(s->avctx->flags2&CODEC_FLAG2_NO_OUTPUT)
649
        return 0;
650
    if(s->context){
648 651
        for(i=0; i<count; i++){
649 652
            s->stats[0][ s->temp[0][2*i  ] ]++;
650 653
            put_bits(&s->pb, s->len[0][ s->temp[0][2*i  ] ], s->bits[0][ s->temp[0][2*i  ] ]);
......
680 683
            s->stats[0][ s->temp[0][2*i  ] ]++;
681 684
            s->stats[0][ s->temp[0][2*i+1] ]++;
682 685
        }
683
    }else if(s->context){
686
    }
687
    if(s->avctx->flags2&CODEC_FLAG2_NO_OUTPUT)
688
        return 0;
689
    
690
    if(s->context){
684 691
        for(i=0; i<count; i++){
685 692
            s->stats[0][ s->temp[0][2*i  ] ]++;
686 693
            put_bits(&s->pb, s->len[0][ s->temp[0][2*i  ] ], s->bits[0][ s->temp[0][2*i  ] ]);
......
1176 1183
            snprintf(p, end-p, "\n");
1177 1184
            p++;
1178 1185
        }
1179
    }else{
1186
    }
1187
    if(!(s->avctx->flags2 & CODEC_FLAG2_NO_OUTPUT)){
1180 1188
        flush_put_bits(&s->pb);
1181 1189
        s->dsp.bswap_buf((uint32_t*)buf, (uint32_t*)buf, size);
1182 1190
        avctx->stats_out[0] = '\0';

Also available in: Unified diff