... | ... |
@@ -198,7 +198,7 @@ static int dpcm_decode_frame(AVCodecContext *avctx, void *data, int *data_size, |
198 | 198 |
break; |
199 | 199 |
} |
200 | 200 |
out *= av_get_bytes_per_sample(avctx->sample_fmt); |
201 |
- if (out < 0) { |
|
201 |
+ if (out <= 0) { |
|
202 | 202 |
av_log(avctx, AV_LOG_ERROR, "packet is too small\n"); |
203 | 203 |
return AVERROR(EINVAL); |
204 | 204 |
} |