mythtranscode does call a function that can return a null pointer and then
From: Erik Hovland <erik@hovland.org>
mythtranscode does not check if that returned pointer is null. This patch
fixes that defect.
---
programs/mythtranscode/mpeg2fix.cpp | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/programs/mythtranscode/mpeg2fix.cpp b/programs/mythtranscode/mpeg2fix.cpp
index 44403d2..87dfa88 100644
a
|
b
|
MPEG2frame *MPEG2fixup::GetPoolFrame(AVPacket *pkt) |
1140 | 1140 | MPEG2frame *MPEG2fixup::GetPoolFrame(MPEG2frame *f) |
1141 | 1141 | { |
1142 | 1142 | MPEG2frame *tmpFrame = GetPoolFrame(&f->pkt); |
| 1143 | if (!tmpFrame) |
| 1144 | return tmpFrame; |
| 1145 | |
1143 | 1146 | tmpFrame->isSequence = f->isSequence; |
1144 | 1147 | tmpFrame->isGop = f->isGop; |
1145 | 1148 | tmpFrame->mpeg2_seq = f->mpeg2_seq; |