aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/mvi.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-03-11 21:05:34 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-03-11 21:05:34 +0100
commit28ee7757f5b0859510e3af6bf49fca9881f09966 (patch)
tree6b6e7ab386a73b664aac3ce21c4ee0d3dff38d4a /libavformat/mvi.c
parent5171ae781a240cac3860c20f9aefc6d1b2c61cac (diff)
parentd92024f18fa3d69937cb2575f3a8bf973df02430 (diff)
downloadffmpeg-28ee7757f5b0859510e3af6bf49fca9881f09966.tar.gz
Merge commit 'd92024f18fa3d69937cb2575f3a8bf973df02430'
* commit 'd92024f18fa3d69937cb2575f3a8bf973df02430': lavf: more correct printf format specifiers Conflicts: libavformat/asfdec.c libavformat/cafdec.c libavformat/dxa.c libavformat/framecrcenc.c libavformat/hnm.c libavformat/iff.c libavformat/mov.c libavformat/mxfdec.c libavformat/rmdec.c libavformat/rpl.c libavformat/smacker.c libavformat/xmv.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/mvi.c')
-rw-r--r--libavformat/mvi.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavformat/mvi.c b/libavformat/mvi.c
index 5efc443152..a7cfcb9a7a 100644
--- a/libavformat/mvi.c
+++ b/libavformat/mvi.c
@@ -19,6 +19,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <inttypes.h>
+
#include "libavutil/channel_layout.h"
#include "avformat.h"
#include "internal.h"
@@ -95,7 +97,8 @@ static int read_header(AVFormatContext *s)
mvi->audio_frame_size = ((uint64_t)mvi->audio_data_size << MVI_FRAC_BITS) / frames_count;
if (mvi->audio_frame_size <= 1 << MVI_FRAC_BITS - 1) {
- av_log(s, AV_LOG_ERROR, "Invalid audio_data_size (%d) or frames_count (%d)\n",
+ av_log(s, AV_LOG_ERROR,
+ "Invalid audio_data_size (%"PRIu32") or frames_count (%u)\n",
mvi->audio_data_size, frames_count);
return AVERROR_INVALIDDATA;
}