Signed-off-by: Anton Khirnov <anton@khirnov.net>
| ... | ... |
@@ -147,7 +147,7 @@ static void filter(AVFilterContext *ctx, AVFilterBufferRef *dstpic, |
| 147 | 147 |
int refs = yadif->cur->linesize[i]; |
| 148 | 148 |
int df = (yadif->csp->comp[i].depth_minus1+1) / 8; |
| 149 | 149 |
|
| 150 |
- if (i) {
|
|
| 150 |
+ if (i == 1 || i == 2) {
|
|
| 151 | 151 |
/* Why is this not part of the per-plane description thing? */ |
| 152 | 152 |
w >>= yadif->csp->log2_chroma_w; |
| 153 | 153 |
h >>= yadif->csp->log2_chroma_h; |
| ... | ... |
@@ -357,6 +357,7 @@ static int query_formats(AVFilterContext *ctx) |
| 357 | 357 |
AV_NE( PIX_FMT_YUV420P16BE, PIX_FMT_YUV420P16LE ), |
| 358 | 358 |
AV_NE( PIX_FMT_YUV422P16BE, PIX_FMT_YUV422P16LE ), |
| 359 | 359 |
AV_NE( PIX_FMT_YUV444P16BE, PIX_FMT_YUV444P16LE ), |
| 360 |
+ PIX_FMT_YUVA420P, |
|
| 360 | 361 |
PIX_FMT_NONE |
| 361 | 362 |
}; |
| 362 | 363 |
|