From f6fbe1d30c1045a56a94588aa6cb5450197a5038 Mon Sep 17 00:00:00 2001 From: Jean-Yves Avenard Date: Sat, 13 Jul 2013 13:12:39 +1000 Subject: [PATCH] Code cleanup. If we enter this loop, type must be equal to MPEG2. Coverity #746801 --- mythtv/programs/mythtranscode/replex/replex.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/mythtv/programs/mythtranscode/replex/replex.c b/mythtv/programs/mythtranscode/replex/replex.c index b22f8e142ca..979e6146b7b 100644 --- a/mythtv/programs/mythtranscode/replex/replex.c +++ b/mythtv/programs/mythtranscode/replex/replex.c @@ -323,13 +323,9 @@ static void analyze_audio( pes_in_t *p, struct replex *rx, int len, int num, int // add each extra frame required direct to the output file int x; for (x = 0; x < framesdiff; x++){ - if (type == AC3){ - if (rx->dmx_out[num+1+rx->apidn]) - write(rx->dmx_out[num+1+rx->apidn], framebuf, aframe->framesize); - }else{ - if (rx->dmx_out[num+1]) - write(rx->dmx_out[num+1], framebuf, aframe->framesize); - } + if (rx->dmx_out[num+1]){ + write(rx->dmx_out[num+1], framebuf, aframe->framesize); + } *acount += 1; }