Revision e20c4069 libavcodec/cyuv.c

View differences:

libavcodec/cyuv.c
98 98
    /* pixel data starts 48 bytes in, after 3x16-byte tables */
99 99
    stream_ptr = 48;
100 100

  
101
    if(s->frame.data[0])
102
        avctx->release_buffer(avctx, &s->frame);
103

  
101 104
    s->frame.reference = 0;
102 105
    if(avctx->get_buffer(avctx, &s->frame) < 0) {
103 106
        fprintf(stderr, "get_buffer() failed\n");
......
159 162
    *data_size=sizeof(AVFrame);
160 163
    *(AVFrame*)data= s->frame;
161 164

  
162
    avctx->release_buffer(avctx, &s->frame);
163

  
164 165
    return buf_size;
165 166
}
166 167

  

Also available in: Unified diff