diff options
author | Aurelien Jacobs <aurel@gnuage.org> | 2008-10-21 21:40:24 +0000 |
---|---|---|
committer | Aurelien Jacobs <aurel@gnuage.org> | 2008-10-21 21:40:24 +0000 |
commit | 37d3e0667abd01124d783f3ca10a4aef05746a2a (patch) | |
tree | 284c171f9546a8f4dc4c12878ecb1c8333f63a76 /libavcodec/dvdata.h | |
parent | 03092e14089e086065bf05671260347ad94a6262 (diff) | |
download | ffmpeg-37d3e0667abd01124d783f3ca10a4aef05746a2a.tar.gz |
uses FF_ARRAY_ELEMS() where appropriate
Originally committed as revision 15662 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/dvdata.h')
-rw-r--r-- | libavcodec/dvdata.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/dvdata.h b/libavcodec/dvdata.h index 5364310198..5bc21bccde 100644 --- a/libavcodec/dvdata.h +++ b/libavcodec/dvdata.h @@ -6386,7 +6386,7 @@ static inline const DVprofile* dv_frame_profile(const uint8_t* frame) return &dv_profiles[2]; } - for (i=0; i<sizeof(dv_profiles)/sizeof(DVprofile); i++) + for (i=0; i<FF_ARRAY_ELEMS(dv_profiles); i++) if (dsf == dv_profiles[i].dsf && stype == dv_profiles[i].video_stype) return &dv_profiles[i]; @@ -6397,7 +6397,7 @@ static const DVprofile* dv_codec_profile(AVCodecContext* codec) { int i; - for (i=0; i<sizeof(dv_profiles)/sizeof(DVprofile); i++) + for (i=0; i<FF_ARRAY_ELEMS(dv_profiles); i++) if (codec->height == dv_profiles[i].height && codec->pix_fmt == dv_profiles[i].pix_fmt && codec->width == dv_profiles[i].width) return &dv_profiles[i]; |