Originally committed as revision 26382 to svn://svn.ffmpeg.org/ffmpeg/trunk
| ... | ... |
@@ -126,7 +126,6 @@ AVFilterBufferRef *avfilter_default_get_audio_buffer(AVFilterLink *link, int per |
| 126 | 126 |
return ref; |
| 127 | 127 |
|
| 128 | 128 |
fail: |
| 129 |
- av_free(buf); |
|
| 130 | 129 |
if (ref && ref->audio) |
| 131 | 130 |
av_free(ref->audio); |
| 132 | 131 |
av_free(ref); |
| ... | ... |
@@ -210,6 +209,7 @@ int avfilter_default_config_output_link(AVFilterLink *link) |
| 210 | 210 |
if (link->type == AVMEDIA_TYPE_VIDEO) {
|
| 211 | 211 |
link->w = link->src->inputs[0]->w; |
| 212 | 212 |
link->h = link->src->inputs[0]->h; |
| 213 |
+ link->sample_aspect_ratio = link->src->inputs[0]->sample_aspect_ratio; |
|
| 213 | 214 |
link->time_base = link->src->inputs[0]->time_base; |
| 214 | 215 |
} else if (link->type == AVMEDIA_TYPE_AUDIO) {
|
| 215 | 216 |
link->channel_layout = link->src->inputs[0]->channel_layout; |