removed useless if statement

This commit is contained in:
Loki 2021-06-07 14:27:42 +02:00
parent 3a3d4928f9
commit 44ebc4846b

View File

@ -435,10 +435,6 @@ public:
return -1;
}
if(img.data == frame->data[0]) {
return 0;
}
// Need to have something refcounted
if(!frame->buf[0]) {
frame->buf[0] = av_buffer_allocz(sizeof(AVD3D11FrameDescriptor));