Skip to content

Commit

Permalink
vf_yadif: add support to yuva420p
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefano Sabatini committed Aug 31, 2011
1 parent 66ce282 commit 22ee131
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libavfilter/vf_yadif.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ static void filter(AVFilterContext *ctx, AVFilterBufferRef *dstpic,
int refs = yadif->cur->linesize[i];
int df = (yadif->csp->comp[i].depth_minus1+1) / 8;

if (i) {
if (i == 1 || i == 2) {
/* Why is this not part of the per-plane description thing? */
w >>= yadif->csp->log2_chroma_w;
h >>= yadif->csp->log2_chroma_h;
Expand Down Expand Up @@ -355,6 +355,7 @@ static int query_formats(AVFilterContext *ctx)
AV_NE( PIX_FMT_YUV420P16BE, PIX_FMT_YUV420P16LE ),
AV_NE( PIX_FMT_YUV422P16BE, PIX_FMT_YUV422P16LE ),
AV_NE( PIX_FMT_YUV444P16BE, PIX_FMT_YUV444P16LE ),
PIX_FMT_YUVA420P,
PIX_FMT_NONE
};

Expand Down

0 comments on commit 22ee131

Please sign in to comment.