Skip to content

Commit ba38f4b

Browse files
committed
rtp/video_decoders: fixed a leak
Fix leaked frame when decode failed - this is a dumb regression introduced with the commit b52bf7b (2024-09-23) by inverting the condition. also CID 152946
1 parent 11e7c61 commit ba38f4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rtp/video_decoders.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1847,7 +1847,7 @@ int decode_video_frame(struct coded_data *cdata, void *decoder_data, struct pbuf
18471847
}
18481848
cleanup:
18491849
;
1850-
if (ret) {
1850+
if (!ret) {
18511851
vf_free(frame);
18521852
}
18531853
pbuf_data->decoded++;

0 commit comments

Comments
 (0)