A frame is allocated by MPEG2fixup::BuildFrame. It doesn't dealloc
From: Erik Hovland <erik@hovland.org>
when it can't find an MPEG encoder to work with the frame. It should.
---
programs/mythtranscode/mpeg2fix.cpp | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/programs/mythtranscode/mpeg2fix.cpp b/programs/mythtranscode/mpeg2fix.cpp
index 3df1865..56b8845 100644
|
a
|
b
|
int MPEG2fixup::BuildFrame(AVPacket *pkt, QString fname)
|
| 1055 | 1055 | |
| 1056 | 1056 | if (! out_codec) |
| 1057 | 1057 | { |
| | 1058 | free(picture); |
| 1058 | 1059 | VERBOSE(MPF_IMPORTANT, "Couldn't find MPEC2 encoder"); |
| 1059 | 1060 | return 1; |
| 1060 | 1061 | } |
| … |
… |
int MPEG2fixup::BuildFrame(AVPacket *pkt, QString fname)
|
| 1102 | 1103 | |
| 1103 | 1104 | if (avcodec_open(c, out_codec) < 0) |
| 1104 | 1105 | { |
| | 1106 | free(picture); |
| 1105 | 1107 | VERBOSE(MPF_IMPORTANT, "could not open codec"); |
| 1106 | 1108 | return 1; |
| 1107 | 1109 | } |