summaryrefslogtreecommitdiffstats
path: root/avplay.c
Commit message (Collapse)AuthorAgeFilesLines
* avpacket: Replace av_free_packet with av_packet_unrefLuca Barbato2015-10-261-7/+7
| | | | | | | `av_packet_unref` matches the AVFrame ref-counted API and can be used as a drop in replacement. Deprecate `av_free_packet`.
* avformat: Always return ref-counted AVPacketLuca Barbato2015-10-261-4/+0
| | | | And drop the av_dup_packet from the input_thread.
* avplay: Replace avpicture functions with imgutilsVittorio Giovara2015-10-211-41/+25
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* lavc: Add data and linesize to AVSubtitleRectVittorio Giovara2015-10-211-5/+5
| | | | | | | | | | | | Use the new fields directly instead of the ones from AVPicture. This removes a layer of indirection which serves no pratical purpose whatsoever, and will help in removing AVPicture structure completely later. Every subtitle encoder/decoder seamlessly points to the new arrays, so it is possible to deprecate AVSubtitleRect.pict. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* lavc: AV-prefix all codec capabilitiesVittorio Giovara2015-07-271-2/+2
| | | | | | Express bitfields more simply. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* lavc: AV-prefix all codec flagsVittorio Giovara2015-07-271-1/+2
| | | | | | Convert doxygen to multiline and express bitfields more simply. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* avplay: Add support for rotated videoMartin Storsjö2015-05-021-0/+19
| | | | | | | | | This is enabled by default, but can be disbled via the -noautorotate option. Based on a patch by Clément Bœsch. Signed-off-by: Martin Storsjö <martin@martin.st>
* avplay: Factorize code for adding filters to the filter pipelineMartin Storsjö2015-05-021-10/+24
| | | | | | Significantly based on a patch by Clément Bœsch. Signed-off-by: Martin Storsjö <martin@martin.st>
* avplay: Do not print a possibly uninitialized valueLuca Barbato2015-04-301-1/+1
| | | | | | Initialize `diff` to 0. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* avplay: Free frame and graph when memory allocation failsFederico Tomassetti2015-04-191-2/+8
| | | | | Bug-Id: CID 1291564 Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* Replace av_dlog with normal av_log at trace levelVittorio Giovara2015-04-191-4/+4
| | | | This applies to every library where performance is not critical.
* avplay: Check memory allocationFederico Tomassetti2015-03-211-0/+2
| | | | | | Bug-Id: CID 1288294 Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* avplay: Check format allocation inside decode_thread()Vittorio Giovara2015-02-171-0/+5
| | | | | CC: libav-stable@libav.org Bug-Id: CID 1265718
* avplay: Check frame allocation inside video_thread()Vittorio Giovara2015-02-171-0/+3
| | | | | CC: libav-stable@libav.org Bug-Id: CID 1267893
* avplay: Use av_gettime_relativeMartin Storsjö2014-10-241-12/+12
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* avplay: Always free optsLuca Barbato2014-10-171-6/+15
| | | | | CC: libav-stable@libav.org Bug-Id: CID 733793
* avplay: Always free find_stream_info optionsLuca Barbato2014-10-171-3/+5
| | | | | CC: libav-stable@libav.org Bug-Id: CID 1238794
* avplay: Exit by default at the end of playbackDiego Biurrun2014-09-061-3/+3
| | | | | | This is the expected behavior shared by all other cli multimedia players. Bug-Id: 732
* cosmetics: Write NULL pointer equality checks more compactlyGabriel Dume2014-08-151-1/+1
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* avplay: Handle pixel aspect ratio properlyMartin Storsjö2014-07-081-0/+2
| | | | | | | This was broken (left half-implemented) in 354468fc12. CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* avplay: add support for seeking to chapter marksAnton Khirnov2014-02-101-0/+33
|
* avplay: do not call avcodec_get_frame_defaults().Anton Khirnov2013-12-111-2/+1
| | | | avcodec_decode_audio4() will reset the frame itself.
* Replace all uses of avcodec_free_frame with av_frame_free().Anton Khirnov2013-12-111-1/+1
|
* Add missing #includes for *INT64_MAX and *INT64_CDiego Biurrun2013-11-231-0/+2
|
* Replace all instances of avcodec_alloc_frame() with av_frame_alloc().Anton Khirnov2013-11-161-1/+1
|
* avplay: drop -vismv option which does not do anything anymoreAnton Khirnov2013-10-311-9/+0
|
* miscellaneous typo fixesDiego Biurrun2013-07-251-1/+2
|
* avplay: remove a warningLuca Barbato2013-04-271-1/+1
| | | | | | Set the data field in the flush_pkt to the pointer to the actual packet. The field needs to contain a valid unique pointer, no read nor writes are ever made to it.
* lavfi: change the filter registering system to match the other librariesAnton Khirnov2013-04-111-3/+0
| | | | Removes an arbitrary hardcoded limit on the number of filters.
* lavfi: merge avfiltergraph.h into avfilter.hAnton Khirnov2013-04-111-1/+0
| | | | | We do not support using filters without AVFilterGraph in practice anyway, so there is no point in pretending we do.
* avplay: remove the -debug option.Anton Khirnov2013-03-191-10/+0
| | | | | It just shadows the corresponding AVOption and prevents using named constants.
* avplay: enable only when SDL 1.2 is foundVittorio Giovara2013-03-091-2/+0
| | | | | | SDL 2 is API incompatible. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* avplay: switch to new refcounted frames APIAnton Khirnov2013-03-081-57/+19
| | | | Remove now unused cmdutils get_buffer() implementation.
* avplay: apply the stream sample_aspect_ratio to decoded video framesVladimir Pantelic2013-02-091-0/+3
| | | | | | | | | If there is a sample_aspect_ratio in the stream, then apply it to every decoded frame in the same way as avconv does. This also makes sure that the avfilter chain has access to the aspect ratio. Signed-off-by: Vladimir Pantelic <vladoman@gmail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* avplay: Do not use removed av_get_int()Anton Khirnov2012-11-291-3/+3
| | | | | | Fixes build with lavfi disabled. Signed-off-by: Diego Biurrun <diego@biurrun.de>
* avplay: support mid-stream sample rate changesJustin Ruggles2012-10-131-14/+21
| | | | Resample to the rate that was configured in SDL.
* avplay: use audio parameters from the decoded frame instead of AVCodecContextJustin Ruggles2012-10-131-10/+10
|
* De-doxygenize some top-level filesDiego Biurrun2012-10-121-17/+13
|
* Replace PIX_FMT_* -> AV_PIX_FMT_*, PixelFormat -> AVPixelFormatAnton Khirnov2012-10-081-2/+2
|
* lavr: change the type of the data buffers to uint8_t**.Anton Khirnov2012-10-051-2/+2
| | | | | | This is more consistent with what the rest of Libav does. This breaks API.
* Use atexit() instead of defining a custom exit_program() interface.Diego Elio Pettenò2012-10-011-5/+0
|
* Use avcodec_free_frame() to free AVFrames.Anton Khirnov2012-09-241-2/+2
|
* avplay: get rid of ugly casts in the options tableAnton Khirnov2012-09-111-28/+28
|
* avplay: fix prototypes for option callbacks.Anton Khirnov2012-09-111-20/+20
| | | | They have been wrong since 11d957fbd81288e64408e79ed369446346000b29
* avconv: split printing "main options" into global and per-file.Anton Khirnov2012-08-191-2/+2
|
* cmdutils: extend -h to allow printing codec details.Anton Khirnov2012-08-191-5/+1
|
* cmdutils: change semantics of show_help_options() and document it.Anton Khirnov2012-08-191-4/+2
| | | | | | | | Currently it takes a mask and value, such that options for which (flags & mask) == value. Change it to take required flags and forbidden flags instead. This is shorter and simpler to understand.
* avtools: move some newlines to show_help_options().Anton Khirnov2012-08-191-2/+2
| | | | Don't require every caller to supply them.
* avtools: fix show_foo() signatures.Anton Khirnov2012-08-191-2/+4
| | | | | show_foo() functions are declared as void show_foo(void), but called as int show_foo(const char*, const char*).
* avplay: fix build with lavfi disabled.Konstantin Pavlov2012-08-081-0/+2
| | | | | | Issue introduced in 67339f6e. Signed-off-by: Anton Khirnov <anton@khirnov.net>
OpenPOWER on IntegriCloud