Browse Source

roqaudioenc: remove dead code

Fixes CID703669
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n1.1
Michael Niedermayer 12 years ago
parent
commit
a1af505d66
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/roqaudioenc.c

+ 1
- 1
libavcodec/roqaudioenc.c View File

@@ -168,7 +168,7 @@ static int roq_dpcm_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
context->lastSample[1] &= 0xFF00;
}

if (context->input_frames == 7 || !in)
if (context->input_frames == 7)
data_size = avctx->channels * context->buffered_samples;
else
data_size = avctx->channels * avctx->frame_size;


Loading…
Cancel
Save