Browse Source

avfilter/vf_decimate: fix crash with gray8

Signed-off-by: Paul B Mahol <onemda@gmail.com>
tags/n2.1
Paul B Mahol 12 years ago
parent
commit
0ad5ef674b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavfilter/vf_decimate.c

+ 1
- 1
libavfilter/vf_decimate.c View File

@@ -86,7 +86,7 @@ static void calc_diffs(const DecimateContext *dm, struct qitem *q,

memset(bdiffs, 0, dm->bdiffsize * sizeof(*bdiffs));

for (plane = 0; plane < (dm->chroma ? 3 : 1); plane++) {
for (plane = 0; plane < (dm->chroma && f1->data[2] ? 3 : 1); plane++) {
int x, y, xl;
const int linesize1 = f1->linesize[plane];
const int linesize2 = f2->linesize[plane];


Loading…
Cancel
Save