Skip to content

Commit 57dcdc2

Browse files
committed
Support I420
1 parent dda649c commit 57dcdc2

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

wrapper/avs_filter.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class AVSFilter : public IClip {
5959
int height() const { return vi.height; }
6060
int depth () const { return bit_per_channel; }
6161
int supported_pixel() const {
62-
return
62+
return vi.pixel_type == VideoInfo::CS_I420 || (
6363
(
6464
(vi.pixel_type & VideoInfo::CS_GENERIC_YUV420) == VideoInfo::CS_GENERIC_YUV420
6565
|| (vi.pixel_type & VideoInfo::CS_GENERIC_YUV422) == VideoInfo::CS_GENERIC_YUV422
@@ -70,7 +70,8 @@ class AVSFilter : public IClip {
7070
|| (vi.pixel_type & VideoInfo::CS_Sample_Bits_12) == VideoInfo::CS_Sample_Bits_12
7171
|| (vi.pixel_type & VideoInfo::CS_Sample_Bits_14) == VideoInfo::CS_Sample_Bits_14
7272
|| (vi.pixel_type & VideoInfo::CS_Sample_Bits_16) == VideoInfo::CS_Sample_Bits_16
73-
);
73+
)
74+
);
7475
}
7576

7677
PVideoFrame __stdcall GetFrame(int n, IScriptEnvironment* env) {

0 commit comments

Comments
 (0)