Skip to content

Commit 63410fb

Browse files
Cleanup recieve_frame
1 parent 4ebbc54 commit 63410fb

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/zm_packet.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -156,15 +156,11 @@ int ZMPacket::receive_frame(AVCodecContext *ctx) {
156156
// receive_frame goes out of scope here and releases the surface
157157
in_frame = std::move(sw_frame);
158158
zm_dump_video_frame(in_frame.get(), "After immediate hwtransfer");
159-
} else {
160-
in_frame = std::move(receive_frame);
159+
return 1;
161160
}
162-
#else
163-
in_frame = std::move(receive_frame);
164161
#endif
165-
#else
166-
in_frame = std::move(receive_frame);
167162
#endif
163+
in_frame = std::move(receive_frame);
168164

169165
return 1;
170166
} // end int ZMPacket::receive_frame(AVCodecContext *ctx)

0 commit comments

Comments
 (0)