Revision 5449a787 libavdevice/v4l2.c

View differences:

libavdevice/v4l2.c
325 325
    int res, fd;
326 326
    struct buff_data *buf_descriptor = pkt->priv;
327 327

  
328
    if (pkt->data == NULL) {
329
         return;
330
    }
331

  
328 332
    memset(&buf, 0, sizeof(struct v4l2_buffer));
329 333
    buf.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
330 334
    buf.memory = V4L2_MEMORY_MMAP;

Also available in: Unified diff