aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/libgsm.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2012-08-05 11:11:04 +0200
committerAnton Khirnov <anton@khirnov.net>2012-08-07 16:00:24 +0200
commit36ef5369ee9b336febc2c270f8718cec4476cb85 (patch)
treed186adbb488e7f002aa894743b1ce0e8925520e6 /libavcodec/libgsm.c
parent104e10fb426f903ba9157fdbfe30292d0e4c3d72 (diff)
downloadffmpeg-36ef5369ee9b336febc2c270f8718cec4476cb85.tar.gz
Replace all CODEC_ID_* with AV_CODEC_ID_*
Diffstat (limited to 'libavcodec/libgsm.c')
-rw-r--r--libavcodec/libgsm.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/libavcodec/libgsm.c b/libavcodec/libgsm.c
index 5e5d9d6a5c..c35acd3bb5 100644
--- a/libavcodec/libgsm.c
+++ b/libavcodec/libgsm.c
@@ -58,11 +58,11 @@ static av_cold int libgsm_encode_init(AVCodecContext *avctx) {
avctx->priv_data = gsm_create();
switch(avctx->codec_id) {
- case CODEC_ID_GSM:
+ case AV_CODEC_ID_GSM:
avctx->frame_size = GSM_FRAME_SIZE;
avctx->block_align = GSM_BLOCK_SIZE;
break;
- case CODEC_ID_GSM_MS: {
+ case AV_CODEC_ID_GSM_MS: {
int one = 1;
gsm_option(avctx->priv_data, GSM_OPT_WAV49, &one);
avctx->frame_size = 2*GSM_FRAME_SIZE;
@@ -103,10 +103,10 @@ static int libgsm_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
}
switch(avctx->codec_id) {
- case CODEC_ID_GSM:
+ case AV_CODEC_ID_GSM:
gsm_encode(state, samples, avpkt->data);
break;
- case CODEC_ID_GSM_MS:
+ case AV_CODEC_ID_GSM_MS:
gsm_encode(state, samples, avpkt->data);
gsm_encode(state, samples + GSM_FRAME_SIZE, avpkt->data + 32);
}
@@ -119,7 +119,7 @@ static int libgsm_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
AVCodec ff_libgsm_encoder = {
.name = "libgsm",
.type = AVMEDIA_TYPE_AUDIO,
- .id = CODEC_ID_GSM,
+ .id = AV_CODEC_ID_GSM,
.init = libgsm_encode_init,
.encode2 = libgsm_encode_frame,
.close = libgsm_encode_close,
@@ -131,7 +131,7 @@ AVCodec ff_libgsm_encoder = {
AVCodec ff_libgsm_ms_encoder = {
.name = "libgsm_ms",
.type = AVMEDIA_TYPE_AUDIO,
- .id = CODEC_ID_GSM_MS,
+ .id = AV_CODEC_ID_GSM_MS,
.init = libgsm_encode_init,
.encode2 = libgsm_encode_frame,
.close = libgsm_encode_close,
@@ -165,11 +165,11 @@ static av_cold int libgsm_decode_init(AVCodecContext *avctx) {
s->state = gsm_create();
switch(avctx->codec_id) {
- case CODEC_ID_GSM:
+ case AV_CODEC_ID_GSM:
avctx->frame_size = GSM_FRAME_SIZE;
avctx->block_align = GSM_BLOCK_SIZE;
break;
- case CODEC_ID_GSM_MS: {
+ case AV_CODEC_ID_GSM_MS: {
int one = 1;
gsm_option(s->state, GSM_OPT_WAV49, &one);
avctx->frame_size = 2 * GSM_FRAME_SIZE;
@@ -232,14 +232,14 @@ static void libgsm_flush(AVCodecContext *avctx) {
gsm_destroy(s->state);
s->state = gsm_create();
- if (avctx->codec_id == CODEC_ID_GSM_MS)
+ if (avctx->codec_id == AV_CODEC_ID_GSM_MS)
gsm_option(s->state, GSM_OPT_WAV49, &one);
}
AVCodec ff_libgsm_decoder = {
.name = "libgsm",
.type = AVMEDIA_TYPE_AUDIO,
- .id = CODEC_ID_GSM,
+ .id = AV_CODEC_ID_GSM,
.priv_data_size = sizeof(LibGSMDecodeContext),
.init = libgsm_decode_init,
.close = libgsm_decode_close,
@@ -252,7 +252,7 @@ AVCodec ff_libgsm_decoder = {
AVCodec ff_libgsm_ms_decoder = {
.name = "libgsm_ms",
.type = AVMEDIA_TYPE_AUDIO,
- .id = CODEC_ID_GSM_MS,
+ .id = AV_CODEC_ID_GSM_MS,
.priv_data_size = sizeof(LibGSMDecodeContext),
.init = libgsm_decode_init,
.close = libgsm_decode_close,