summaryrefslogtreecommitdiff
path: root/libavcodec/dvdata.h
diff options
context:
space:
mode:
authorRoman Shaposhnik <roman@shaposhnik.org>2008-08-19 16:00:26 +0000
committerRoman Shaposhnik <roman@shaposhnik.org>2008-08-19 16:00:26 +0000
commitcb879ec2fb67248adf9ca4762f36836cea0a8b26 (patch)
treef8de1e24b8802e24c2b798c2b116c93e6c87a284 /libavcodec/dvdata.h
parent2c8d438893ac37d15921b89014f749907c6cb239 (diff)
downloadffmpeg-cb879ec2fb67248adf9ca4762f36836cea0a8b26.tar.gz
Introducing DV_MAX_BPM macro instead of a hardcoded value for the
highest number of blocks per macroblock Originally committed as revision 14840 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/dvdata.h')
-rw-r--r--libavcodec/dvdata.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/dvdata.h b/libavcodec/dvdata.h
index c725e1a765..48ddfccd7a 100644
--- a/libavcodec/dvdata.h
+++ b/libavcodec/dvdata.h
@@ -2638,6 +2638,9 @@ enum dv_pack_type {
/* largest possible DV frame, in bytes (PAL 50Mbps) */
#define DV_MAX_FRAME_SIZE 288000
+/* maximum number of blocks per macroblock in any DV format */
+#define DV_MAX_BPM 8
+
static inline const DVprofile* dv_frame_profile(const uint8_t* frame)
{
if ((frame[3] & 0x80) == 0) { /* DSF flag */