"ref[%p buf:%p data:%p linesize[%d, %d, %d, %d] pts:%"PRId64" pos:%"PRId64,
ref, ref->buf, ref->data[0],
ref->linesize[0], ref->linesize[1], ref->linesize[2], ref->linesize[3],
- ref->pts, av_frame_get_pkt_pos(ref));
+ ref->pts, ref->pkt_pos);
if (ref->width) {
ff_tlog(ctx, " a:%d/%d s:%dx%d i:%c iskey:%d type:%c",
av_log(link->dst, AV_LOG_ERROR, "Format change is not supported\n");
goto error;
}
- if (av_frame_get_channels(frame) != link->channels) {
+ if (frame->channels != link->channels) {
av_log(link->dst, AV_LOG_ERROR, "Channel count change is not supported\n");
goto error;
}
case AVMEDIA_TYPE_AUDIO:
av_samples_copy(out->extended_data, frame->extended_data,
0, 0, frame->nb_samples,
- av_frame_get_channels(frame),
+ frame->channels,
frame->format);
break;
default:
{
AVFilterContext *dstctx = link->dst;
int64_t pts = frame->pts;
- int64_t pos = av_frame_get_pkt_pos(frame);
+ int64_t pos = frame->pkt_pos;
if (!dstctx->enable_str)
return 1;