diff options
author | Paul B Mahol <onemda@gmail.com> | 2017-06-13 16:07:36 +0300 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2017-06-13 16:10:58 +0300 |
commit | f85cad799b52eb15f3dda40f4a400ee1a6e059a1 (patch) | |
tree | 082bf4fe158f186a9efff98a3d379db6e344845a /libavfilter/avf_abitscope.c | |
parent | 3839580b71345ec7a8245dc5faa562eb9903cb22 (diff) |
avfilter: properly set SAR for A->V filters
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavfilter/avf_abitscope.c')
-rw-r--r-- | libavfilter/avf_abitscope.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavfilter/avf_abitscope.c b/libavfilter/avf_abitscope.c index 0f3e3594c1..0e3eaa422e 100644 --- a/libavfilter/avf_abitscope.c +++ b/libavfilter/avf_abitscope.c @@ -166,6 +166,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *insamples) memset(outpicref->data[0] + i * outpicref->linesize[0], 0, outlink->w * 4); outpicref->pts = insamples->pts; + outpicref->sample_aspect_ratio = (AVRational){1,1}; + switch (insamples->format) { case AV_SAMPLE_FMT_S16P: for (ch = 0; ch < inlink->channels; ch++) { |