libavdevice/dv1394.c:203: error: Buffer Overrun L2
  Offset: [0, 7] Size: 3 by call to `dv_produce_packet`.

libavdevice/dv1394.c:171:13: Unknown value from: ioctl
169.         }
170. 
171.         if (ioctl(dv->fd, DV1394_GET_STATUS, &s) < 0) {
                 ^
172.             av_log(context, AV_LOG_ERROR, "Failed to get status: %s\n", strerror(errno));
173.             return AVERROR(EIO);

libavdevice/dv1394.c:203:12: Call
201. #endif
202. 
203.     size = dv_produce_packet(dv->dv_demux, pkt,
                ^
204.                              dv->ring + (dv->index * DV1394_PAL_FRAME_SIZE),
205.                              DV1394_PAL_FRAME_SIZE);

libavformat/dv.c:317:1: Parameter `*buf`
  315. }
  316. 
  317. int dv_produce_packet(DVDemuxContext *c, AVPacket *pkt,
       ^
  318.                       uint8_t* buf, int buf_size)
  319. {

libavformat/dv.c:324:20: Call
  322. 
  323.     if (buf_size < DV_PROFILE_BYTES ||
  324.         !(c->sys = dv_frame_profile(buf)) ||
                          ^
  325.         buf_size < c->sys->frame_size) {
  326.           return -1;   /* Broken frame, or not enough data */

libavcodec/dvdata.h:6380:1: Parameter `*frame`
    6378. #define DV_MAX_BPM 8
    6379. 
    6380. static inline const DVprofile* dv_frame_profile(const uint8_t* frame)
          ^
    6381. {
    6382.    int i;

libavformat/dv.c:331:12: Call
  329.     /* Queueing audio packet */
  330.     /* FIXME: in case of no audio/bad audio we have to do something */
  331.     size = dv_extract_audio_info(c, buf);
                  ^
  332.     for (i=0; i<c->ach; i++) {
  333.        c->audio_pkt[i].size = size;

libavformat/dv.c:187:1: Parameter `*frame`
    185. }
    186. 
    187. static int dv_extract_audio_info(DVDemuxContext* c, uint8_t* frame)
         ^
    188. {
    189.     const uint8_t* as_pack;

libavformat/dv.c:192:15: Call
    190.     int freq, stype, smpls, quant, i, ach;
    191. 
    192.     as_pack = dv_extract_pack(frame, dv_audio_source);
                       ^
    193.     if (!as_pack || !c->sys) {    /* No audio ? */
    194.         c->ach = 0;

libavformat/dv.c:73:1: Parameter `t`
      71.  * to have a fallback mechanism for complete search of missing packs.
      72.  */
      73. static const uint8_t* dv_extract_pack(uint8_t* frame, enum dv_pack_type t)
          ^
      74. {
      75.     int offs;

libavformat/dv.c:337:5: Call
  335.        ppcm[i] = c->audio_buf[i];
  336.     }
  337.     dv_extract_audio(buf, ppcm, c->sys);
           ^
  338.     c->abytes += size;
  339. 

libavformat/dv.c:102:1: <Offset trace>
100.  *    are converted into 16bit linear ones.
101.  */
102. static int dv_extract_audio(uint8_t* frame, uint8_t* ppcm[4],
     ^
103.                             const DVprofile *sys)
104. {

libavformat/dv.c:102:1: Parameter `*frame`
    100.  *    are converted into 16bit linear ones.
    101.  */
    102. static int dv_extract_audio(uint8_t* frame, uint8_t* ppcm[4],
         ^
    103.                             const DVprofile *sys)
    104. {

libavformat/dv.c:110:15: Call
    108.     uint8_t *pcm, ipcm;
    109. 
    110.     as_pack = dv_extract_pack(frame, dv_audio_source);
                       ^
    111.     if (!as_pack)    /* No audio ? */
    112.         return 0;

libavformat/dv.c:73:1: Parameter `t`
      71.  * to have a fallback mechanism for complete search of missing packs.
      72.  */
      73. static const uint8_t* dv_extract_pack(uint8_t* frame, enum dv_pack_type t)
          ^
      74. {
      75.     int offs;

libavformat/dv.c:115:5: Assignment
    113. 
    114.     smpls = as_pack[1] & 0x3f; /* samples in this frame - min. samples */
    115.     freq = (as_pack[4] >> 3) & 0x07; /* 0 - 48KHz, 1 - 44,1kHz, 2 - 32 kHz */
             ^
    116.     quant = as_pack[4] & 0x07; /* 0 - 16bit linear, 1 - 12bit nonlinear */
    117. 

libavformat/dv.c:102:1: <Length trace>
100.  *    are converted into 16bit linear ones.
101.  */
102. static int dv_extract_audio(uint8_t* frame, uint8_t* ppcm[4],
     ^
103.                             const DVprofile *sys)
104. {

libavformat/dv.c:102:1: Parameter `sys->audio_min_samples[*]`
    100.  *    are converted into 16bit linear ones.
    101.  */
    102. static int dv_extract_audio(uint8_t* frame, uint8_t* ppcm[4],
         ^
    103.                             const DVprofile *sys)
    104. {

libavformat/dv.c:121:13: Array access: Offset: [0, 7] Size: 3 by call to `dv_produce_packet` 
    119.         return -1; /* Unsupported quantization */
    120. 
    121.     size = (sys->audio_min_samples[freq] + smpls) * 4; /* 2ch, 2bytes */
                     ^
    122.     half_ch = sys->difseg_size/2;
    123. 
