]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/cscd.c
fix playback of angels_480-mjpegcompress.avi
[ffmpeg] / libavcodec / cscd.c
index bda359f597e09d304599a66cc1b28c0d5ab3cca2..6177cbd4290f3897a07e7143f25c19c8c27bcc5e 100644 (file)
@@ -137,7 +137,7 @@ static void add_frame_32(AVFrame *f, uint8_t *src,
 
 static int decode_frame(AVCodecContext *avctx, void *data, int *data_size,
                         uint8_t *buf, int buf_size) {
-    CamStudioContext *c = (CamStudioContext *)avctx->priv_data;
+    CamStudioContext *c = avctx->priv_data;
     AVFrame *picture = data;
 
     if (buf_size < 2) {
@@ -214,7 +214,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size,
 }
 
 static int decode_init(AVCodecContext *avctx) {
-    CamStudioContext *c = (CamStudioContext *)avctx->priv_data;
+    CamStudioContext *c = avctx->priv_data;
     if (avcodec_check_dimensions(avctx, avctx->height, avctx->width) < 0) {
         return 1;
     }
@@ -242,7 +242,7 @@ static int decode_init(AVCodecContext *avctx) {
 }
 
 static int decode_end(AVCodecContext *avctx) {
-    CamStudioContext *c = (CamStudioContext *)avctx->priv_data;
+    CamStudioContext *c = avctx->priv_data;
     av_freep(&c->decomp_buf);
     if (c->pic.data[0])
         avctx->release_buffer(avctx, &c->pic);