Lines 120-126
class LibAVFilter::Private
Link Here
|
120 |
// pixel_aspect==sar, pixel_aspect is more compatible |
120 |
// pixel_aspect==sar, pixel_aspect is more compatible |
121 |
QString buffersrc_args = args; |
121 |
QString buffersrc_args = args; |
122 |
qDebug("buffersrc_args=%s", buffersrc_args.toUtf8().constData()); |
122 |
qDebug("buffersrc_args=%s", buffersrc_args.toUtf8().constData()); |
123 |
AVFilter *buffersrc = avfilter_get_by_name(video ? "buffer" : "abuffer"); |
123 |
#if LIBAVFILTER_VERSION_INT >= AV_VERSION_INT(7,0,0) |
|
|
124 |
const |
125 |
#endif |
126 |
AVFilter *buffersrc = avfilter_get_by_name(video ? "buffer" : "abuffer"); |
124 |
Q_ASSERT(buffersrc); |
127 |
Q_ASSERT(buffersrc); |
125 |
AV_ENSURE_OK(avfilter_graph_create_filter(&in_filter_ctx, |
128 |
AV_ENSURE_OK(avfilter_graph_create_filter(&in_filter_ctx, |
126 |
buffersrc, |
129 |
buffersrc, |
Lines 128-133
class LibAVFilter::Private
Link Here
|
128 |
filter_graph) |
131 |
filter_graph) |
129 |
, false); |
132 |
, false); |
130 |
/* buffer video sink: to terminate the filter chain. */ |
133 |
/* buffer video sink: to terminate the filter chain. */ |
|
|
134 |
#if LIBAVFILTER_VERSION_INT >= AV_VERSION_INT(7,0,0) |
135 |
const |
136 |
#endif |
131 |
AVFilter *buffersink = avfilter_get_by_name(video ? "buffersink" : "abuffersink"); |
137 |
AVFilter *buffersink = avfilter_get_by_name(video ? "buffersink" : "abuffersink"); |
132 |
Q_ASSERT(buffersink); |
138 |
Q_ASSERT(buffersink); |
133 |
AV_ENSURE_OK(avfilter_graph_create_filter(&out_filter_ctx, buffersink, "out", |
139 |
AV_ENSURE_OK(avfilter_graph_create_filter(&out_filter_ctx, buffersink, "out", |