Revision e20c4069 libavcodec/huffyuv.c

View differences:

libavcodec/huffyuv.c
737 737
    
738 738
    init_get_bits(&s->gb, s->bitstream_buffer, buf_size*8);
739 739

  
740
    if(p->data[0])
741
        avctx->release_buffer(avctx, p);
742

  
740 743
    p->reference= 0;
741 744
    if(avctx->get_buffer(avctx, p) < 0){
742 745
        fprintf(stderr, "get_buffer() failed\n");
......
943 946
    emms_c();
944 947
    
945 948
    *picture= *p;
946
    
947
    avctx->release_buffer(avctx, p);
948

  
949 949
    *data_size = sizeof(AVFrame);
950 950
    
951 951
    return (get_bits_count(&s->gb)+31)/32*4;

Also available in: Unified diff