Revision d509c743 libavcodec/dvdata.h

View differences:

libavcodec/dvdata.h
698 698
 */
699 699
#define DV_MAX_BPM 8
700 700

  
701
static inline const DVprofile* dv_frame_profile(const uint8_t* frame)
701
static inline
702
const DVprofile* dv_frame_profile(const DVprofile *sys,
703
                                  const uint8_t* frame, unsigned buf_size)
702 704
{
703 705
   int i;
704 706

  
......
715 717
       if (dsf == dv_profiles[i].dsf && stype == dv_profiles[i].video_stype)
716 718
           return &dv_profiles[i];
717 719

  
720
   /* check if old sys matches and assumes corrupted input */
721
   if (sys && buf_size == sys->frame_size)
722
       return sys;
723

  
718 724
   return NULL;
719 725
}
720 726

  

Also available in: Unified diff