~ppsspp/ppsspp/ffmpeg

« back to all changes in this revision

Viewing changes to libavcodec/libutvideodec.cpp

  • Committer: Henrik Rydgård
  • Date: 2014-01-03 10:44:32 UTC
  • Revision ID: git-v1:87c6c126784b1718bfa448ecf2e6a9fef781eb4e
Update our ffmpeg snapshot to a clone of the official repository.

This is because Maxim's at3plus support has been officially merged!

Show diffs side-by-side

added added

removed removed

Lines of Context:
96
96
    }
97
97
 
98
98
    /* Allocate the output frame */
99
 
    avctx->coded_frame = avcodec_alloc_frame();
 
99
    avctx->coded_frame = av_frame_alloc();
100
100
 
101
101
    /* Ut Video only supports 8-bit */
102
102
    avctx->bits_per_raw_sample = 8;
164
164
    }
165
165
 
166
166
    *got_frame = 1;
167
 
    *(AVFrame *)data = *pic;
 
167
    av_frame_move_ref((AVFrame*)data, pic);
168
168
 
169
169
    return avpkt->size;
170
170
}
174
174
    UtVideoContext *utv = (UtVideoContext *)avctx->priv_data;
175
175
 
176
176
    /* Free output */
177
 
    av_freep(&avctx->coded_frame);
 
177
    av_frame_free(&avctx->coded_frame);
178
178
    av_freep(&utv->buffer);
179
179
 
180
180
    /* Finish decoding and clean up the instance */