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:
3fa9a99
)
roqaudioenc: return AVERROR codes instead of -1
author
Justin Ruggles
<justin.ruggles@gmail.com>
Wed, 22 Feb 2012 23:33:39 +0000
(18:33 -0500)
committer
Justin Ruggles
<justin.ruggles@gmail.com>
Sat, 25 Feb 2012 16:49:43 +0000
(11:49 -0500)
libavcodec/roqaudioenc.c
patch
|
blob
|
history
diff --git
a/libavcodec/roqaudioenc.c
b/libavcodec/roqaudioenc.c
index
6f36965
..
cebc53c
100644
(file)
--- a/
libavcodec/roqaudioenc.c
+++ b/
libavcodec/roqaudioenc.c
@@
-57,11
+57,11
@@
static av_cold int roq_dpcm_encode_init(AVCodecContext *avctx)
if (avctx->channels > 2) {
av_log(avctx, AV_LOG_ERROR, "Audio must be mono or stereo\n");
- return
-1
;
+ return
AVERROR(EINVAL)
;
}
if (avctx->sample_rate != 22050) {
av_log(avctx, AV_LOG_ERROR, "Audio must be 22050 Hz\n");
- return
-1
;
+ return
AVERROR(EINVAL)
;
}
avctx->frame_size = ROQ_FRAME_SIZE;