]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/crystalhd.c
avcodec: Constify AVCodecs
[ffmpeg] / libavcodec / crystalhd.c
index 228803183affe01bec315623a679072f5126c9b4..f709cf74a70437da8f758e0d544b113ce86b6586 100644 (file)
@@ -537,11 +537,6 @@ static inline CopyRet copy_frame(AVCodecContext *avctx,
         frame->top_field_first = !bottom_first;
 
     frame->pts = pkt_pts;
-#if FF_API_PKT_PTS
-FF_DISABLE_DEPRECATION_WARNINGS
-    frame->pkt_pts = pkt_pts;
-FF_ENABLE_DEPRECATION_WARNINGS
-#endif
 
     frame->pkt_pos = -1;
     frame->pkt_duration = 0;
@@ -772,7 +767,7 @@ static int crystalhd_receive_frame(AVCodecContext *avctx, AVFrame *frame)
         .option = options, \
         .version = LIBAVUTIL_VERSION_INT, \
     }; \
-    AVCodec ff_##x##_crystalhd_decoder = { \
+    const AVCodec ff_##x##_crystalhd_decoder = { \
         .name           = #x "_crystalhd", \
         .long_name      = NULL_IF_CONFIG_SMALL("CrystalHD " #X " decoder"), \
         .type           = AVMEDIA_TYPE_VIDEO, \