[SCM] libav/experimental: dv: Update DV-profile-related functions to current public API

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Aug 10 16:04:08 UTC 2014


The following commit has been merged in the experimental branch:
commit 7835c24e19d9e1cb43fba5a02ce9d81d518f1300
Author: Diego Biurrun <diego at biurrun.de>
Date:   Sat Aug 2 08:45:01 2014 -0700

    dv: Update DV-profile-related functions to current public API

diff --git a/libavcodec/dvdec.c b/libavcodec/dvdec.c
index 336f32c..476f8c9 100644
--- a/libavcodec/dvdec.c
+++ b/libavcodec/dvdec.c
@@ -343,7 +343,7 @@ static int dvvideo_decode_frame(AVCodecContext *avctx,
     int apt, is16_9, ret;
     const AVDVProfile *sys;
 
-    sys = avpriv_dv_frame_profile(s->sys, buf, buf_size);
+    sys = av_dv_frame_profile(s->sys, buf, buf_size);
     if (!sys || buf_size < sys->frame_size) {
         av_log(avctx, AV_LOG_ERROR, "could not find dv frame profile\n");
         return -1; /* NOTE: we only accept several full frames */
diff --git a/libavcodec/dvenc.c b/libavcodec/dvenc.c
index 5031218..74e29d8 100644
--- a/libavcodec/dvenc.c
+++ b/libavcodec/dvenc.c
@@ -45,7 +45,7 @@ static av_cold int dvvideo_encode_init(AVCodecContext *avctx)
     PixblockDSPContext pdsp;
     int ret;
 
-    s->sys = avpriv_dv_codec_profile(avctx);
+    s->sys = av_dv_codec_profile(avctx->width, avctx->height, avctx->pix_fmt);
     if (!s->sys) {
         av_log(avctx, AV_LOG_ERROR, "Found no DV profile for %ix%i %s video. "
                "Valid DV profiles are:\n",

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list