summaryrefslogtreecommitdiff
path: root/libavdevice
Commit message (Collapse)AuthorAge
* lavd/xv: free resources on errorsLukasz Marek2013-11-15
| | | | | | | xv_write_header callback leave not freed resources on errors. Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com> Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
* lavd/xv: add more supported formatsLukasz Marek2013-11-15
| | | | | | | | | Add support for following pixel formats: - AV_PIX_FMT_UYVY422 - AV_PIX_FMT_YUYV422 Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com> Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
* lavd/xv: simplify write_packetLukasz Marek2013-11-15
| | | | | Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com> Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
* lavd/xv: fix memory leakLukasz Marek2013-11-13
| | | | | | Results of XvQueryAdaptors have to be freed with XvFreeAdaptorInfo. Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
* lavd/pulse: add ff_ prefix and fix param typeLukasz Marek2013-11-04
| | | | | | | Add ff_ prefix for internal API function. Change type of param from int into enum AVCodecID as it is more specific. Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
* lavd/pulse_audio_enc: fix flush return codeLukasz Marek2013-11-04
| | | | | | Successful flushing is reported by returning 1 instead of 0. Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
* lavd/lavfi: support unknown channel layouts.Nicolas George2013-11-03
|
* lavd/alsa: add stream validationLukasz Marek2013-11-03
| | | | | | | | Don't trust provided streams. Return with error when stream count is not 1 or provided stream is not an audio stream. Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
* lavd/alsa: fix timestamp calculationLukasz Marek2013-11-03
| | | | | | | | | Current implementation didn't include duration of last processed packet. Device may return negative timestamps without this correction. Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
* lavd/xv: free graphics contextLukasz Marek2013-11-01
| | | | | | | | Valgrind detects mem leak from XCreateGC. Free it with XFreeGC. Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com> Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
* timefilter: Fix typo in allocation failure messageDerek Buitenhuis2013-10-29
| | | | Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* avdevice/pulse_audio_enc: remove double ;Michael Niedermayer2013-10-28
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavd/fbdev_enc: remove unused variablesLukasz Marek2013-10-27
| | | | | Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavd/fbdev_enc: more stream validation restrictiveLukasz Marek2013-10-27
| | | | | | | So far fbdev_enc device picked up first video stream and ignored others. It is required to provide exactly one video stream now. Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
* lavd/pulse_audio_enc: more stream validation restrictiveLukasz Marek2013-10-27
| | | | | | | So far pulse device picked up first audio stream and ignored others. It is required to provide exactly one audio stream now. Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
* lavd:pulse_audio_enc: fix array compared against 0Lukasz Marek2013-10-27
| | | | | | fixes CID 1113222 Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
* lavd/pulse_audio_enc: fix timestamp calculationLukasz Marek2013-10-27
| | | | | | | | Current implementation didn't include duration of last processed packet. Also remove access to st->cur_dts and replace with pkt->pts. Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
* timefilter: Handle memory allocation failureDerek Buitenhuis2013-10-27
| | | | Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* lavd/pulse_audio_enc: avoid vars in for()Lukasz Marek2013-10-26
| | | | Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
* lavd/pulse_audio_enc: add another default to stream nameLukasz Marek2013-10-26
| | | | Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
* lavd/fbdev_common: fix compilation with older kernelsIngo Brückl2013-10-24
| | | | | | | | This will avoid errors due to conflicting declarations with linux kernels prior to 2.6.30. Reviewed-by: Lukasz M <lukasz.m.luki@gmail.com> Signed-off-by: Ingo Brückl <ib@wupperonline.de>
* lavd/x11grab: Support AV_PIX_FMT_PAL8.Carl Eugen Hoyos2013-10-24
| | | | Fixes ticket #3068.
* avdevice/fbdev_enc: avoid declaring variables in for()Michael Niedermayer2013-10-24
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavd/fbdev: move common code to separate fileLukasz Marek2013-10-24
| | | | | | | Move common fbdev dec/enc for separate file. Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com> Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
* lavd: rename fbdev.c into fbdev_dec.cLukasz Marek2013-10-24
| | | | | | | Rename existing fbdev.c to make it a more meaningful name. Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com> Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
* lavd: add fbdev output deviceLukasz Marek2013-10-24
| | | | | Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com> Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
* lavd/pulse_audio_enc: add support for flushingLukasz Marek2013-10-20
| | | | | Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com> Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
* lavd/pulse_audio_enc: fix error checkLukasz Marek2013-10-18
| | | | | | | Error check should be done by checking negative value, not non-zero. Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com> Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
* lavd/fbdev: use av_str2err() macro for printing error messagesStefano Sabatini2013-10-18
| | | | | In particular fix wrong strerror(ret) with a negative value, and avoid the use of non thread-safe strerror().
* lavd/pulse_audio_dec: apply cosmetic changesLukasz Marek2013-10-18
| | | | | | | | In particular, fix punctuation in docs and make option help messages grammatically consistent. Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com> Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
* lavd/fbdev: pass proper memory map lengthLukasz Marek2013-10-18
| | | | | | | | fbdev->data was allocated with size fbdev->fixinfo.smem_len, release data in fbdev_read_close() using the same size. Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com> Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
* avdevice/pulse_audio_enc: fix stream indexLukasz Marek2013-10-12
| | | | Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
* lavd/xv.c: Include XShm.h before Xvlib.h.Carl Eugen Hoyos2013-10-09
| | | | This may fix compilation with libxv 1.0.4.
* Add pulse_audio_common.h to skipheaders.Carl Eugen Hoyos2013-10-09
| | | | Fixes an error when running make checkheaders.
* lavd/pulse: move common code to separate fileLukasz Marek2013-10-08
| | | | | | Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com> Reviewed-by: Stefano Sabatini <stefasab@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavd/pulse: rename pulse.c into pulse_audio_dec.cLukasz Marek2013-10-08
| | | | | | | | This make name of the file more specific as there is also encoder implementation. Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavd: pulse audio encoderLukasz Marek2013-10-08
| | | | | | Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com> Reviewed-by: Stefano Sabatini <stefasab@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avdevice/v4l: remove duplicate includeMichael Niedermayer2013-09-21
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavd/v4l2: do not fail when VIDIOC_ENUMSTD returns EINVAL without a valid matchmrlika2013-09-17
| | | | | | | | | | | | | | | | With some (buggy) drivers, the VIDIOC_G_STD ioctl returns a std_id that cannot be matched with any of the enumerated v4l2_standard structures (for example std_id = 0 or std_id = 0xffffff). Do not fail when we reach the end of the enumeration without a valid match. Fixes ticket #2370 Note: This commit message has been modified by Giorgio Vazzana, the original commit message was: "Fixed regression for mandatory VIDIOC_ENUMSTD support by v4l2" Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavd/v4l2: Improve debug messageGiorgio Vazzana2013-09-08
| | | | | | | In particular, print the standard supported by the selected input. Additionally, use PRIx64 everywhere when printing standards. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Read h264 headers from v4l2 to allow stream-copying.Carl Eugen Hoyos2013-09-01
| | | | | Fixes ticket #2882. Analyzed and tested by William C Bonner.
* Reinstate proper FFmpeg license for all files.Thilo Borgmann2013-08-30
|
* lavd: Fix make checkheadersJames Almer2013-08-11
| | | | | Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Merge remote-tracking branch 'qatar/master'Michael Niedermayer2013-08-10
|\ | | | | | | | | | | | | * qatar/master: libavutil: Make avpriv_open a library-internal function on msvcrt Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * libavutil: Make avpriv_open a library-internal function on msvcrtMartin Storsjö2013-08-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add one copy of the function into each of the libraries, similarly to what we do for log2_tab. When using static libs, only one copy of the file_open.o object file gets included, while when using shared libraries, each of them get a copy of its own. This fixes DLL builds with a statically linked C runtime, where each DLL effectively has got its own instance of the C runtime, where file descriptors can't be shared across runtimes. On systems not using msvcrt, the function is not duplicated. Signed-off-by: Martin Storsjö <martin@martin.st>
* | Merge commit 'cb0244daaca83ab666798818f74f5181bf6bc387'Michael Niedermayer2013-08-10
|\| | | | | | | | | | | | | * commit 'cb0244daaca83ab666798818f74f5181bf6bc387': bktr: Changed a missed occurrance of open into avpriv_open Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * bktr: Changed a missed occurrance of open into avpriv_openMartin Storsjö2013-08-10
| | | | | | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* | Merge commit '71bf6b41d974229a06921806c333ce98566a5d8a'Michael Niedermayer2013-08-08
|\| | | | | | | | | | | | | | | | | | | * commit '71bf6b41d974229a06921806c333ce98566a5d8a': libavdevice: use avpriv_open() Conflicts: libavdevice/v4l2.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * libavdevice: use avpriv_open()Rémi Denis-Courmont2013-08-07
| | | | | | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* | avdevice/vfwcap: make constant arrays staticMichael Niedermayer2013-08-03
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>