mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
dv: Update DV-profile-related functions to current public API
This commit is contained in:
parent
ffa4d4ef0b
commit
7835c24e19
@ -343,7 +343,7 @@ static int dvvideo_decode_frame(AVCodecContext *avctx,
|
|||||||
int apt, is16_9, ret;
|
int apt, is16_9, ret;
|
||||||
const AVDVProfile *sys;
|
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) {
|
if (!sys || buf_size < sys->frame_size) {
|
||||||
av_log(avctx, AV_LOG_ERROR, "could not find dv frame profile\n");
|
av_log(avctx, AV_LOG_ERROR, "could not find dv frame profile\n");
|
||||||
return -1; /* NOTE: we only accept several full frames */
|
return -1; /* NOTE: we only accept several full frames */
|
||||||
|
@ -45,7 +45,7 @@ static av_cold int dvvideo_encode_init(AVCodecContext *avctx)
|
|||||||
PixblockDSPContext pdsp;
|
PixblockDSPContext pdsp;
|
||||||
int ret;
|
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) {
|
if (!s->sys) {
|
||||||
av_log(avctx, AV_LOG_ERROR, "Found no DV profile for %ix%i %s video. "
|
av_log(avctx, AV_LOG_ERROR, "Found no DV profile for %ix%i %s video. "
|
||||||
"Valid DV profiles are:\n",
|
"Valid DV profiles are:\n",
|
||||||
|
Loading…
Reference in New Issue
Block a user