Revision e4141433 libavcodec/smc.c

View differences:

libavcodec/smc.c
432 432

  
433 433
static int smc_decode_init(AVCodecContext *avctx)
434 434
{
435
    SmcContext *s = (SmcContext *)avctx->priv_data;
435
    SmcContext *s = avctx->priv_data;
436 436

  
437 437
    s->avctx = avctx;
438 438
    avctx->pix_fmt = PIX_FMT_PAL8;
......
447 447
                             void *data, int *data_size,
448 448
                             uint8_t *buf, int buf_size)
449 449
{
450
    SmcContext *s = (SmcContext *)avctx->priv_data;
450
    SmcContext *s = avctx->priv_data;
451 451

  
452 452
    s->buf = buf;
453 453
    s->size = buf_size;
......
471 471

  
472 472
static int smc_decode_end(AVCodecContext *avctx)
473 473
{
474
    SmcContext *s = (SmcContext *)avctx->priv_data;
474
    SmcContext *s = avctx->priv_data;
475 475

  
476 476
    if (s->frame.data[0])
477 477
        avctx->release_buffer(avctx, &s->frame);

Also available in: Unified diff