X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fcrystalhd.c;h=f709cf74a70437da8f758e0d544b113ce86b6586;hb=a247ac640df3da573cd661065bf53f37863e2b46;hp=e3c5955969e16b44a106e7ede5bdf3c1565cb88b;hpb=03210fe138f3b3bd7f5272fe29aca810cf517329;p=ffmpeg diff --git a/libavcodec/crystalhd.c b/libavcodec/crystalhd.c index e3c5955969e..f709cf74a70 100644 --- a/libavcodec/crystalhd.c +++ b/libavcodec/crystalhd.c @@ -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; @@ -657,7 +652,6 @@ static int crystalhd_decode_packet(AVCodecContext *avctx, const AVPacket *avpkt) BC_STATUS bc_ret; CHDContext *priv = avctx->priv_data; HANDLE dev = priv->dev; - AVPacket filtered_packet = { 0 }; int ret = 0; av_log(avctx, AV_LOG_VERBOSE, "CrystalHD: decode_packet\n"); @@ -700,7 +694,6 @@ static int crystalhd_decode_packet(AVCodecContext *avctx, const AVPacket *avpkt) goto exit; } exit: - av_packet_unref(&filtered_packet); return ret; } @@ -774,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, \