Skip to content

Commit

Permalink
fix a warning with in dump_stream_info
Browse files Browse the repository at this point in the history
The bit_rate field is a int64_t (long int).
  • Loading branch information
fmang committed Aug 7, 2017
1 parent 57d20f9 commit e167362
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/audio.c
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ static void dump_stream_info(struct oshu_audio *audio)
oshu_log_info("============ Audio information ============");
oshu_log_info(" Codec: %s.", audio->codec->long_name);
oshu_log_info(" Sample rate: %d Hz.", audio->decoder->sample_rate);
oshu_log_info(" Average bit rate: %d kbps.", audio->decoder->bit_rate / 1000);
oshu_log_info(" Average bit rate: %ld kbps.", audio->decoder->bit_rate / 1000);
oshu_log_info(" Sample format: %s.", av_get_sample_fmt_name(audio->decoder->sample_fmt));
oshu_log_info(" Duration: %d seconds.", (int) (audio->stream->duration * audio->time_base));
}
Expand Down

0 comments on commit e167362

Please sign in to comment.