Revision e4141433 libavcodec/tiertexseqv.c

View differences:

libavcodec/tiertexseqv.c
176 176

  
177 177
static int seqvideo_decode_init(AVCodecContext *avctx)
178 178
{
179
    SeqVideoContext *seq = (SeqVideoContext *)avctx->priv_data;
179
    SeqVideoContext *seq = avctx->priv_data;
180 180

  
181 181
    seq->avctx = avctx;
182 182
    avctx->pix_fmt = PIX_FMT_PAL8;
......
191 191
                                 uint8_t *buf, int buf_size)
192 192
{
193 193

  
194
    SeqVideoContext *seq = (SeqVideoContext *)avctx->priv_data;
194
    SeqVideoContext *seq = avctx->priv_data;
195 195

  
196 196
    seq->frame.reference = 1;
197 197
    seq->frame.buffer_hints = FF_BUFFER_HINTS_VALID | FF_BUFFER_HINTS_PRESERVE | FF_BUFFER_HINTS_REUSABLE;
......
210 210

  
211 211
static int seqvideo_decode_end(AVCodecContext *avctx)
212 212
{
213
    SeqVideoContext *seq = (SeqVideoContext *)avctx->priv_data;
213
    SeqVideoContext *seq = avctx->priv_data;
214 214

  
215 215
    if (seq->frame.data[0])
216 216
        avctx->release_buffer(avctx, &seq->frame);

Also available in: Unified diff