History

avfilter: do not use AVFrame accessor

Muhammad Faiz committed 9 years ago

Commit 6af050d1 parent 8103c5952 files · +80 −80Browse files

Showing the changes to libavfilter/avfilter.c (1 of 52 files). Show all

Unified · Split

libavfilter/avfilter.c+4−4
@@ -53,7 +53,7 @@ void ff_tlog_ref(void *ctx, AVFrame *ref, int end) · 52 unmodified lines
5353 "ref[%p buf:%p data:%p linesize[%d, %d, %d, %d] pts:%"PRId64" pos:%"PRId64,
5454 ref, ref->buf, ref->data[0],
5555 ref->linesize[0], ref->linesize[1], ref->linesize[2], ref->linesize[3],
56− ref->pts, av_frame_get_pkt_pos(ref));
56+ ref->pts, ref->pkt_pos);
5757
5858 if (ref->width) {
5959 ff_tlog(ctx, " a:%d/%d s:%dx%d i:%c iskey:%d type:%c",
@@ -1143,7 +1143,7 @@ int ff_filter_frame(AVFilterLink *link, AVFrame *frame) · 1083 unmodified lines
11431143 av_log(link->dst, AV_LOG_ERROR, "Format change is not supported\n");
11441144 goto error;
11451145 }
1146− if (av_frame_get_channels(frame) != link->channels) {
1146+ if (frame->channels != link->channels) {
11471147 av_log(link->dst, AV_LOG_ERROR, "Channel count change is not supported\n");
11481148 goto error;
11491149 }
@@ -1585,7 +1585,7 @@ int ff_inlink_make_frame_writable(AVFilterLink *link, AVFrame **rframe) · 435 unmodified lines
15851585 case AVMEDIA_TYPE_AUDIO:
15861586 av_samples_copy(out->extended_data, frame->extended_data,
15871587 0, 0, frame->nb_samples,
1588− av_frame_get_channels(frame),
1588+ frame->channels,
15891589 frame->format);
15901590 break;
15911591 default:
@@ -1616,7 +1616,7 @@ int ff_inlink_evaluate_timeline_at_frame(AVFilterLink *link, const AVFrame *fram · 24 unmodified lines
16161616 {
16171617 AVFilterContext *dstctx = link->dst;
16181618 int64_t pts = frame->pts;
1619− int64_t pos = av_frame_get_pkt_pos(frame);
1619+ int64_t pos = frame->pkt_pos;
16201620
16211621 if (!dstctx->enable_str)
16221622 return 1;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t