Browse Source

alacenc: fix max_frame_size calculation for the final frame

tags/n1.0
Justin Ruggles 13 years ago
parent
commit
ec7a212f9f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/alacenc.c

+ 1
- 1
libavcodec/alacenc.c View File

@@ -546,7 +546,7 @@ static int alac_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,

s->frame_size = frame->nb_samples;

if (avctx->frame_size < DEFAULT_FRAME_SIZE)
if (frame->nb_samples < DEFAULT_FRAME_SIZE)
max_frame_size = get_max_frame_size(s->frame_size, avctx->channels,
DEFAULT_SAMPLE_SIZE);
else


Loading…
Cancel
Save