Skip to content

Commit

Permalink
[coreVideoCodec] Fix U and V swapped in decoderNull::uncompress
Browse files Browse the repository at this point in the history
This should correct swapped colors with YV12 output of frameservers like VapourSynth and AviSynth after ADM_PLANE enum fix.
  • Loading branch information
eumagga0x2a committed Sep 22, 2020
1 parent 5f1d835 commit ee47c39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions avidemux_core/ADM_coreVideoCodec/include/ADM_codecNull.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ class decoderNull:public decoders
switch(i)
{
case PLANAR_Y: src=in->data;break;
case PLANAR_U: src=in->data+plane;break;
case PLANAR_V: src=in->data+((plane*5)>>2);break;
case PLANAR_V: src=in->data+plane;break;
case PLANAR_U: src=in->data+((plane*5)>>2);break;
}
BitBlit(dest, pitch,src,line,line,colmn);
}
Expand Down

0 comments on commit ee47c39

Please sign in to comment.