projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e79da63
)
dpcm: do not try to decode empty packets
author
Justin Ruggles
<justin.ruggles@gmail.com>
Wed, 2 Nov 2011 20:49:38 +0000
(16:49 -0400)
committer
Justin Ruggles
<justin.ruggles@gmail.com>
Fri, 11 Nov 2011 19:17:39 +0000
(14:17 -0500)
libavcodec/dpcm.c
patch
|
blob
|
history
diff --git
a/libavcodec/dpcm.c
b/libavcodec/dpcm.c
index
f6531db
..
abb2019
100644
(file)
--- a/
libavcodec/dpcm.c
+++ b/
libavcodec/dpcm.c
@@
-198,7
+198,7
@@
static int dpcm_decode_frame(AVCodecContext *avctx, void *data, int *data_size,
break;
}
out *= av_get_bytes_per_sample(avctx->sample_fmt);
- if (out < 0) {
+ if (out <
=
0) {
av_log(avctx, AV_LOG_ERROR, "packet is too small\n");
return AVERROR(EINVAL);
}