summaryrefslogtreecommitdiff
path: root/libavfilter/avf_abitscope.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2017-06-13 15:07:36 +0200
committerPaul B Mahol <onemda@gmail.com>2017-06-13 15:10:58 +0200
commitf85cad799b52eb15f3dda40f4a400ee1a6e059a1 (patch)
tree082bf4fe158f186a9efff98a3d379db6e344845a /libavfilter/avf_abitscope.c
parent3839580b71345ec7a8245dc5faa562eb9903cb22 (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.c2
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++) {