History

Make config_props() show conversion information before to create the swscale context.

This makes eventual warnings issued in case of swscale context creation failure to be shown after the conversion information rather than before, which is slightly less confusing. Originally committed as revision 23056 to svn://svn.ffmpeg.org/ffmpeg/trunk

Stefano Sabatini committed 16 years ago

Commit d760a311 parent 38efdb21 file · +4 −4Browse files

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

libavfilter/vf_scale.c+4−4
@@ -128,10 +128,6 @@ static int config_props(AVFilterLink *outlink) · 127 unmodified lines
128 outlink->h = h;128 outlink->h = h;
129 129
130 /* TODO: make algorithm configurable */130 /* TODO: make algorithm configurable */
131 scale->sws = sws_getContext(inlink ->w, inlink ->h, inlink ->format,
132 outlink->w, outlink->h, outlink->format,
133 scale->flags, NULL, NULL, NULL);
134
135 av_log(ctx, AV_LOG_INFO, "w:%d h:%d fmt:%s -> w:%d h:%d fmt:%s flags:%0x\n",131 av_log(ctx, AV_LOG_INFO, "w:%d h:%d fmt:%s -> w:%d h:%d fmt:%s flags:%0x\n",
136 inlink ->w, inlink ->h, av_pix_fmt_descriptors[ inlink->format].name,132 inlink ->w, inlink ->h, av_pix_fmt_descriptors[ inlink->format].name,
137 outlink->w, outlink->h, av_pix_fmt_descriptors[outlink->format].name,133 outlink->w, outlink->h, av_pix_fmt_descriptors[outlink->format].name,
@@ -139,6 +135,10 @@ static int config_props(AVFilterLink *outlink) · 1 unmodified line
139 135
140 scale->input_is_pal = av_pix_fmt_descriptors[inlink->format].flags & PIX_FMT_PAL;136 scale->input_is_pal = av_pix_fmt_descriptors[inlink->format].flags & PIX_FMT_PAL;
141 137
138 scale->sws = sws_getContext(inlink ->w, inlink ->h, inlink ->format,
139 outlink->w, outlink->h, outlink->format,
140 scale->flags, NULL, NULL, NULL);
141
142 return !scale->sws;142 return !scale->sws;
143}143}
144 144

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