Skip to content

Commit

Permalink
Code cleanup.
Browse files Browse the repository at this point in the history
If we enter this loop, type must be equal to MPEG2.

Coverity #746801
  • Loading branch information
jyavenard committed Jul 14, 2013
1 parent 350653e commit f6fbe1d
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions mythtv/programs/mythtranscode/replex/replex.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit f6fbe1d

Please sign in to comment.