We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4ebbc54 commit 63410fbCopy full SHA for 63410fb
src/zm_packet.cpp
@@ -156,15 +156,11 @@ int ZMPacket::receive_frame(AVCodecContext *ctx) {
156
// receive_frame goes out of scope here and releases the surface
157
in_frame = std::move(sw_frame);
158
zm_dump_video_frame(in_frame.get(), "After immediate hwtransfer");
159
- } else {
160
- in_frame = std::move(receive_frame);
+ return 1;
161
}
162
-#else
163
164
#endif
165
166
167
+ in_frame = std::move(receive_frame);
168
169
return 1;
170
} // end int ZMPacket::receive_frame(AVCodecContext *ctx)
0 commit comments