This website works better with JavaScript.
Home
Help
Sign In
falkTX
/
FFmpeg
mirror of
https://github.com/falkTX/FFmpeg.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
338
Wiki
Activity
Browse Source
v4l2_m2m: decoder: fix memory leak
tags/n4.1
Lukas Rusak
Jorge Ramirez-Ortiz
6 years ago
parent
7becc70375
commit
7395f13df9
1 changed files
with
4 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-1
libavcodec/v4l2_m2m_dec.c
+ 4
- 1
libavcodec/v4l2_m2m_dec.c
View File
@@ -149,11 +149,14 @@ static int v4l2_receive_frame(AVCodecContext *avctx, AVFrame *frame)
if (avpkt.size) {
ret = v4l2_try_start(avctx);
if (ret)
if (ret) {
av_packet_unref(&avpkt);
return 0;
}
}
dequeue:
av_packet_unref(&avpkt);
return ff_v4l2_context_dequeue_frame(capture, frame);
}
Write
Preview
Loading…
Cancel
Save