aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mjpegenc.h
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2015-03-29 13:24:18 +0200
committerDiego Biurrun <diego@biurrun.de>2015-03-30 17:51:20 +0200
commit87f87ccf32055aca25fa08e29e22cca1ba9976d5 (patch)
treec49682d83d30d1073410ed1c2d80064e6b443458 /libavcodec/mjpegenc.h
parente6e3dcba0c6f11bd7022e2d3b9bcb7b6a09d6c80 (diff)
downloadffmpeg-87f87ccf32055aca25fa08e29e22cca1ba9976d5.tar.gz
mjpeg: Use a more precise type for put_marker()
Diffstat (limited to 'libavcodec/mjpegenc.h')
-rw-r--r--libavcodec/mjpegenc.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/mjpegenc.h b/libavcodec/mjpegenc.h
index eec4d2554d..aa8697edc8 100644
--- a/libavcodec/mjpegenc.h
+++ b/libavcodec/mjpegenc.h
@@ -35,6 +35,7 @@
#include <stdint.h>
+#include "mjpeg.h"
#include "mpegvideo.h"
#include "put_bits.h"
@@ -50,7 +51,7 @@ typedef struct MJpegContext {
uint16_t huff_code_ac_chrominance[256];
} MJpegContext;
-static inline void put_marker(PutBitContext *p, int code)
+static inline void put_marker(PutBitContext *p, enum JpegMarker code)
{
put_bits(p, 8, 0xff);
put_bits(p, 8, code);