Revision f122ef36 libavformat/mtv.c

View differences:

libavformat/mtv.c
25 25
 */
26 26

  
27 27
#include "libavutil/bswap.h"
28
#include "libavutil/intreadwrite.h"
28 29
#include "avformat.h"
29 30

  
30 31
#define MTV_ASUBCHUNK_DATA_SIZE 500
......
56 57
    if(*(p->buf) != 'A' || *(p->buf+1) != 'M' || *(p->buf+2) != 'V')
57 58
        return 0;
58 59

  
60
    /* Check for nonzero in bpp and (width|height) header fields */
61
    if(!(p->buf[51] && AV_RL16(&p->buf[52]) | AV_RL16(&p->buf[54])))
62
        return 0;
63

  
59 64
    return AVPROBE_SCORE_MAX;
60 65
}
61 66

  

Also available in: Unified diff