mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-06 15:49:50 +08:00
Modify all codecs to report their supported input and output sample format(s).
Originally committed as revision 14482 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@ -323,6 +323,9 @@ static av_cold int g726_init(AVCodecContext * avctx)
|
||||
return AVERROR(ENOMEM);
|
||||
avctx->coded_frame->key_frame = 1;
|
||||
|
||||
if (avctx->codec->decode)
|
||||
avctx->sample_fmt = SAMPLE_FMT_S16;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -381,6 +384,7 @@ AVCodec adpcm_g726_encoder = {
|
||||
g726_encode_frame,
|
||||
g726_close,
|
||||
NULL,
|
||||
.sample_fmts = (enum SampleFormat[]){SAMPLE_FMT_S16,SAMPLE_FMT_NONE},
|
||||
.long_name = NULL_IF_CONFIG_SMALL("G.726 ADPCM"),
|
||||
};
|
||||
#endif //CONFIG_ENCODERS
|
||||
|
Reference in New Issue
Block a user