projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9cb70ce
)
sipr: do not needlessly set *data_size to 0 when returning an error
author
Justin Ruggles
<justin.ruggles@gmail.com>
Sat, 29 Oct 2011 04:49:38 +0000
(
00:49
-0400)
committer
Justin Ruggles
<justin.ruggles@gmail.com>
Wed, 9 Nov 2011 19:59:51 +0000
(14:59 -0500)
libavcodec/sipr.c
patch
|
blob
|
history
diff --git
a/libavcodec/sipr.c
b/libavcodec/sipr.c
index
08dd63a
..
70227c3
100644
(file)
--- a/
libavcodec/sipr.c
+++ b/
libavcodec/sipr.c
@@
-518,8
+518,6
@@
static int sipr_decode_frame(AVCodecContext *avctx, void *datap,
av_log(avctx, AV_LOG_ERROR,
"Error processing packet: packet size (%d) too small\n",
avpkt->size);
-
- *data_size = 0;
return -1;
}
@@
-530,8
+528,6
@@
static int sipr_decode_frame(AVCodecContext *avctx, void *datap,
av_log(avctx, AV_LOG_ERROR,
"Error processing packet: output buffer (%d) too small\n",
*data_size);
-
- *data_size = 0;
return -1;
}