This commit is contained in:
2014-08-12 10:31:07 +10:00
parent afe8a4040f
commit d124bd1cd4
7 changed files with 9 additions and 9 deletions

View File

@@ -701,7 +701,7 @@ static AVStream *alloc_audio_stream(RenderData *rd, int codec_id, AVFormatContex
* you have various implementations around. float samples in particular are not always supported.
*/
const enum AVSampleFormat *p = codec->sample_fmts;
for (; *p!=-1; p++) {
for (; *p != -1; p++) {
if (*p == st->codec->sample_fmt)
break;
}