]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/rtjpeg.h
Add expected const qualifier on 'buf' to match AVCodec.decode's declaration.
[ffmpeg] / libavcodec / rtjpeg.h
index c36a54f8b4671de773c79999c7380a7495e20e32..02f2058b2c39d0260b69b8cf1c9ab949a1852652 100644 (file)
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
-#ifndef RTJPEG_H
-#define RTJPEG_H
+#ifndef AVCODEC_RTJPEG_H
+#define AVCODEC_RTJPEG_H
 
 #include <stdint.h>
-#include <dsputil.h>
+#include "dsputil.h"
 
 typedef struct {
     int w, h;
@@ -35,8 +35,8 @@ typedef struct {
 
 void rtjpeg_decode_init(RTJpegContext *c, DSPContext *dsp,
                         int width, int height,
-                        uint32_t *lquant, uint32_t *cquant);
+                        const uint32_t *lquant, const uint32_t *cquant);
 
 int rtjpeg_decode_frame_yuv420(RTJpegContext *c, AVFrame *f,
-                               uint8_t *buf, int buf_size);
-#endif
+                               const uint8_t *buf, int buf_size);
+#endif /* AVCODEC_RTJPEG_H */