Mercurial > libavcodec.hg
comparison alac.c @ 7451:85ab7655ad4d libavcodec
Modify all codecs to report their supported input and output sample format(s).
author | pross |
---|---|
date | Thu, 31 Jul 2008 10:47:31 +0000 |
parents | e1ed057dc7c3 |
children | 6fe7ff34a4db |
comparison
equal
deleted
inserted
replaced
7450:30d38a880fde | 7451:85ab7655ad4d |
---|---|
592 alac->avctx = avctx; | 592 alac->avctx = avctx; |
593 alac->context_initialized = 0; | 593 alac->context_initialized = 0; |
594 | 594 |
595 alac->numchannels = alac->avctx->channels; | 595 alac->numchannels = alac->avctx->channels; |
596 alac->bytespersample = (avctx->bits_per_sample / 8) * alac->numchannels; | 596 alac->bytespersample = (avctx->bits_per_sample / 8) * alac->numchannels; |
597 avctx->sample_fmt = SAMPLE_FMT_S16; | |
597 | 598 |
598 return 0; | 599 return 0; |
599 } | 600 } |
600 | 601 |
601 static av_cold int alac_decode_close(AVCodecContext *avctx) | 602 static av_cold int alac_decode_close(AVCodecContext *avctx) |