Mercurial > libavformat.hg
changeset 3800:88e7a94697d3 libavformat
make has_codec_parameters not returning true when sample_fmt is not set
author | bcoudurier |
---|---|
date | Fri, 29 Aug 2008 22:13:22 +0000 |
parents | 2f2fbec96aeb |
children | a6400b4fd5cb |
files | utils.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/utils.c Fri Aug 29 22:10:34 2008 +0000 +++ b/utils.c Fri Aug 29 22:13:22 2008 +0000 @@ -1842,7 +1842,7 @@ int val; switch(enc->codec_type) { case CODEC_TYPE_AUDIO: - val = enc->sample_rate && enc->channels; + val = enc->sample_rate && enc->channels && enc->sample_fmt != SAMPLE_FMT_NONE; if(!enc->frame_size && (enc->codec_id == CODEC_ID_VORBIS || enc->codec_id == CODEC_ID_AAC))