History

lavfi: rename AVFilterBufferRefVideoProps.pixel_aspect to sample_aspect_ratio

Improve consistency with libavcodec. This breaks libavfilter API/ABI. The non-sequential 2.1.0 -> 2.4.0 bump is due to the mess previously done with the lavfi minor number.

Stefano Sabatini committed 15 years ago

Commit 35fe66a1 parent 77e9dee14 files · +30 −25Browse files

Showing the changes to libavfilter/vsrc_buffer.c (1 of 14 files). Show all

Unified · Split

libavfilter/vsrc_buffer.c+4−4
@@ -34,7 +34,7 @@ typedef struct { · 33 unmodified lines
3434 int h, w;
3535 enum PixelFormat pix_fmt;
3636 AVRational time_base; ///< time_base to set in the output link
37− AVRational pixel_aspect;
37+ AVRational sample_aspect_ratio;
3838 char sws_param[256];
3939 } BufferSourceContext;
4040
@@ -130,7 +130,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque) · 89 unmodified lines
130130 if (!args ||
131131 (n = sscanf(args, "%d:%d:%127[^:]:%d:%d:%d:%d", &c->w, &c->h, pix_fmt_str,
132132 &c->time_base.num, &c->time_base.den,
133− &c->pixel_aspect.num, &c->pixel_aspect.den)) != 7) {
133+ &c->sample_aspect_ratio.num, &c->sample_aspect_ratio.den)) != 7) {
134134 av_log(ctx, AV_LOG_ERROR, "Expected 7 arguments, but only %d found in '%s'\n", n, args);
135135 return AVERROR(EINVAL);
136136 }
@@ -162,7 +162,7 @@ static int config_props(AVFilterLink *link) · 25 unmodified lines
162162
163163 link->w = c->w;
164164 link->h = c->h;
165− link->sample_aspect_ratio = c->pixel_aspect;
165+ link->sample_aspect_ratio = c->sample_aspect_ratio;
166166 link->time_base = c->time_base;
167167
168168 return 0;
@@ -190,7 +190,7 @@ static int request_frame(AVFilterLink *link) · 21 unmodified lines
190190 picref->format, link->w, link->h);
191191
192192 picref->pts = c->pts;
193− picref->video->pixel_aspect = c->frame.sample_aspect_ratio;
193+ picref->video->sample_aspect_ratio = c->frame.sample_aspect_ratio;
194194 picref->video->interlaced = c->frame.interlaced_frame;
195195 picref->video->top_field_first = c->frame.top_field_first;
196196 picref->video->key_frame = c->frame.key_frame;

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