|
|
|
@@ -362,8 +362,8 @@ static int pcm_decode_frame(AVCodecContext *avctx, |
|
|
|
|
|
|
|
if(n && buf_size % n){ |
|
|
|
if (buf_size < n) { |
|
|
|
av_log(avctx, AV_LOG_ERROR, "invalid PCM packet\n"); |
|
|
|
return -1; |
|
|
|
av_log(avctx, AV_LOG_ERROR, "invalid PCM packet\n"); |
|
|
|
return -1; |
|
|
|
}else |
|
|
|
buf_size -= buf_size % n; |
|
|
|
} |
|
|
|
|