summaryrefslogtreecommitdiff
path: root/libavdevice
Commit message (Collapse)AuthorAge
* lavd/xv: report if no adaptor present.Nicolas George2013-12-29
|
* Merge commit 'b83d1ee3b41cfe8357836e2582104db2f3364cb0'Michael Niedermayer2013-12-27
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'b83d1ee3b41cfe8357836e2582104db2f3364cb0': avutil: Move library version related macros to version.h Conflicts: libavcodec/version.h libavresample/version.h libavutil/avutil.h libavutil/utils.c See: 183117fed7d0a910b5f65e5c78b065f125abf369 Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * avutil: Move library version related macros to version.hDiego Biurrun2013-12-26
| | | | | | | | This is a more sensible place for these macros.
* | lavu,lavfi,lavd: do not hardcode AV_PIX_FMT_NB value when setting pixel ↵Stefano Sabatini2013-12-26
| | | | | | | | | | | | | | | | | | | | | | | | format max value The constant may change in libavutil but the library may be compiled against an older version, thus rejecting a value which is otherwise supported by the new libavutil. INT_MAX is used here to denote the max allowed value for a pixel format. The opt-test code is changed to provide a valid reference example.
* | Merge commit 'd64341e498fa46c6cf4c23d408177d7489559654'Michael Niedermayer2013-12-09
|\| | | | | | | | | | | | | | | | | | | | | * commit 'd64341e498fa46c6cf4c23d408177d7489559654': configure: Prefix libc-related variables with "libc_" Conflicts: libavdevice/Makefile libavformat/Makefile Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * configure: Prefix libc-related variables with "libc_"Diego Biurrun2013-12-09
| | | | | | | | Simplifies host/target libc detection splitting.
| * alsa-audio-dec: explicitly cast the delay to a signed int64Anton Khirnov2013-12-03
| | | | | | | | | | | | Otherwise the expression will be evaluated as unsigned, which will break when the result should be negative. CC:libav-stable@libav.org
| * timefilter: Handle memory allocation failureDerek Buitenhuis2013-10-29
| | | | | | | | Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* | lavd/fbdev_enc: add default deviceLukasz Marek2013-12-06
| | | | | | | | | | | | Use device specified by environment variable FRAMEBUFFER or /dev/fb0 as default. Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
* | Add Windows resource file support for shared librariesJames Almer2013-12-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Originally written by James Almer <jamrial@gmail.com> With the following contributions by Timothy Gu <timothygu99@gmail.com> * Use descriptions of libraries from the pkg-config file generation function * Use "FFmpeg Project" as CompanyName (suggested by Alexander Strasser) * Use "FFmpeg" for ProductName as MSDN says "name of the product with which the file is distributed" [1]. * Use FFmpeg's version (N-xxxxx-gxxxxxxx) for ProductVersion per MSDN [1]. * Only build the .rc files when --enable-small is not enabled. [1] http://msdn.microsoft.com/en-us/library/windows/desktop/aa381058.aspx Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavd/pulse_audio_enc: add buffer size control optionsLukasz Marek2013-11-27
| | | | | | | | | | | | | | Add options to control the size of the PulseAudio buffer. Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com> Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
* | lavd/sdl: add delay when no events are found in the event queueStefano Sabatini2013-11-26
| | | | | | | | | | | | Avoid busy loops and decrease CPU usage. Suggested-By: Roger Pack
* | lavd/sdl: apply misc cosmetics to optionsStefano Sabatini2013-11-26
| |
* | lavd/sdl: allow to change window sizeStefano Sabatini2013-11-26
| |
* | lavd/sdl: move compute_overlay_rect() before event_thread()Stefano Sabatini2013-11-26
| | | | | | | | It will be used in event_thread() in a pending patch.
* | lavd/sdl: factorize overlay rect size in a separate functionStefano Sabatini2013-11-26
| |
* | lavd/sdl: add event handler threadStefano Sabatini2013-11-26
| | | | | | | | | | | | | | SDL_Init() is called on the event handler thread, as required by SDL in Windows to avoid deadlocks as discovered by Roger Pack. Fix trac ticket #1743 and #1744.
* | lavd/sdl: do not manually free window_title and icon_title fieldsStefano Sabatini2013-11-24
| | | | | | | | They are automatically freed when calling av_write_trailer(). Simplify.
* | 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>