]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/loco.c
alac: simplify 1st order prediction and reading of warm-up samples
[ffmpeg] / libavcodec / loco.c
index 919a06b123ab02ee1657a0f61df011ca81a82f14..b86f5fe6a3b417ce29daf8d9571e22f9cf39e88c 100644 (file)
@@ -163,7 +163,7 @@ static int decode_frame(AVCodecContext *avctx,
     const uint8_t *buf = avpkt->data;
     int buf_size = avpkt->size;
     LOCOContext * const l = avctx->priv_data;
-    AVFrame * const p= (AVFrame*)&l->pic;
+    AVFrame * const p = &l->pic;
     int decoded;
 
     if(p->data[0])
@@ -294,5 +294,5 @@ AVCodec ff_loco_decoder = {
     .close          = decode_end,
     .decode         = decode_frame,
     .capabilities   = CODEC_CAP_DR1,
-    .long_name = NULL_IF_CONFIG_SMALL("LOCO"),
+    .long_name      = NULL_IF_CONFIG_SMALL("LOCO"),
 };