Commit f09aa73b authored by Clément Bœsch's avatar Clément Bœsch

Merge commit '796dca02'

* commit '796dca02':
  alac: do not return success if nothing was decoded

See e11983bdMerged-by: 's avatarClément Bœsch <u@pkh.me>
parents 1080b716 796dca02
......@@ -460,7 +460,7 @@ static int alac_decode_frame(AVCodecContext *avctx, void *data,
avpkt->size * 8 - get_bits_count(&alac->gb));
}
if (alac->channels == ch)
if (alac->channels == ch && alac->nb_samples)
*got_frame_ptr = 1;
else
av_log(avctx, AV_LOG_WARNING, "Failed to decode all channels\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment