Revision f4e043ff libavcodec/qpeg.c

View differences:

libavcodec/qpeg.c
259 259
    int delta;
260 260
    const uint8_t *pal = av_packet_get_side_data(avpkt, AV_PKT_DATA_PALETTE, NULL);
261 261

  
262
    if(p->data[0])
263
        avctx->release_buffer(avctx, p);
264

  
265
    p->reference= 0;
266
    if(avctx->get_buffer(avctx, p) < 0){
267
        av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
262
    p->reference = 3;
263
    if (avctx->reget_buffer(avctx, p) < 0) {
264
        av_log(avctx, AV_LOG_ERROR, "reget_buffer() failed\n");
268 265
        return -1;
269 266
    }
270 267
    outdata = a->pic.data[0];

Also available in: Unified diff