Mercurial > libavcodec.hg
diff libamr.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 | e943e1409077 |
| children | 81238f0bea66 |
line wrap: on
line diff
--- a/libamr.c Wed Jul 30 18:21:51 2008 +0000 +++ b/libamr.c Thu Jul 31 10:47:31 2008 +0000 @@ -134,6 +134,7 @@ } avctx->frame_size = 160 * is_amr_wb; + avctx->sample_fmt = SAMPLE_FMT_S16; } #ifdef CONFIG_LIBAMR_NB_FIXED @@ -516,6 +517,7 @@ amr_nb_encode_frame, amr_nb_encode_close, NULL, + .sample_fmts = (enum SampleFormat[]){SAMPLE_FMT_S16,SAMPLE_FMT_NONE}, .long_name = NULL_IF_CONFIG_SMALL("libamr-nb Adaptive Multi-Rate (AMR) Narrow-Band"), }; @@ -710,6 +712,7 @@ amr_wb_encode_frame, amr_wb_encode_close, NULL, + .sample_fmts = (enum SampleFormat[]){SAMPLE_FMT_S16,SAMPLE_FMT_NONE}, .long_name = NULL_IF_CONFIG_SMALL("libamr-wb Adaptive Multi-Rate (AMR) Wide-Band"), };
