#ifndef FFMPEG_DVDATA_H
#define FFMPEG_DVDATA_H
+#include "libavutil/rational.h"
#include "avcodec.h"
-#include "rational.h"
/*
* DVprofile is used to express the differences between various
static const uint8_t dv_quant_offset[4] = { 6, 3, 0, 1 };
-/* NOTE: I prefer hardcoding the positionning of dv blocks, it is
+/* NOTE: I prefer hardcoding the positioning of dv blocks, it is
simpler :-) */
static const uint16_t dv_place_420[1620] = {
/* largest possible DV frame, in bytes (PAL 50Mbps) */
#define DV_MAX_FRAME_SIZE 288000
-static inline const DVprofile* dv_frame_profile(uint8_t* frame)
+static inline const DVprofile* dv_frame_profile(const uint8_t* frame)
{
if ((frame[3] & 0x80) == 0) { /* DSF flag */
/* it's an NTSC format */