~ubuntu-branches/ubuntu/lucid/ffmpeg/lucid-updates

« back to all changes in this revision

Viewing changes to libavdevice/v4l2.c

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2009-02-05 21:45:05 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20090205214505-fvn0jkiv3lrkaaq4
Tags: 3:0.svn20090204-2ubuntu1+unstripped1
rebuild using a clean, uncrippled ffmpeg tarball

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * Video4Linux2 grab interface
3
 
 * Copyright (c) 2000,2001 Fabrice Bellard.
4
 
 * Copyright (c) 2006 Luca Abeni.
 
3
 * Copyright (c) 2000,2001 Fabrice Bellard
 
4
 * Copyright (c) 2006 Luca Abeni
5
5
 *
6
6
 * Part of this file is based on the V4L2 video capture example
7
7
 * (http://v4l2spec.bytesex.org/v4l2spec/capture.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;