summaryrefslogtreecommitdiff
path: root/avplay.c
Commit message (Collapse)AuthorAge
* cosmetics: Fix spelling mistakesVittorio Giovara2016-05-04
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* avplay: convert do codecparAnton Khirnov2016-02-24
|
* avplay: do not use AVStream.codec for decodingAnton Khirnov2016-02-24
| | | | | AVStream.codec is now deprecated. Allocate a separate codec context instead.
* avplay: drop support for building without lavfiAnton Khirnov2016-02-09
| | | | | | lavfi has been considered to be stable for a while now, so it is enabled in most configurations. Supporting avplay without lavfi requires a lot of nontrivial ifdef mess for no good reason.
* avplay: Allow to override the codecLuca Barbato2016-01-25
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* avplay: Statically allocate the player stateLuca Barbato2016-01-25
| | | | | | And move the resource deallocation in stream_open failure path. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* avplay: Rename cur_stream to playerLuca Barbato2016-01-25
| | | | | | The name was misleading. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* avplay: Rename VideoState to PlayerStateLuca Barbato2016-01-25
| | | | | | The structure is not video-specific. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* avplay: Allocate the refresh thread next to the decode threadLuca Barbato2016-01-25
| | | | | | It does not belong to the stream setup. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* avplay: Move the stream setup in the main threadLuca Barbato2016-01-25
| | | | | | | And refactor the code in preparation of the following patches. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* avpacket: Replace av_free_packet with av_packet_unrefLuca Barbato2015-10-26
| | | | | | | `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-26
| | | | And drop the av_dup_packet from the input_thread.
* avplay: Replace avpicture functions with imgutilsVittorio Giovara2015-10-21
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* lavc: Add data and linesize to AVSubtitleRectVittorio Giovara2015-10-21
| | | | | | | | | | | | 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-27
| | | | | | Express bitfields more simply. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* lavc: AV-prefix all codec flagsVittorio Giovara2015-07-27
| | | | | | 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-02
| | | | | | | | | 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-02
| | | | | | 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-30
| | | | | | Initialize `diff` to 0. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* avplay: Free frame and graph when memory allocation failsFederico Tomassetti2015-04-19
| | | | | 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-19
| | | | This applies to every library where performance is not critical.
* avplay: Check memory allocationFederico Tomassetti2015-03-21
| | | | | | Bug-Id: CID 1288294 Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* avplay: Check format allocation inside decode_thread()Vittorio Giovara2015-02-17
| | | | | CC: libav-stable@libav.org Bug-Id: CID 1265718
* avplay: Check frame allocation inside video_thread()Vittorio Giovara2015-02-17
| | | | | CC: libav-stable@libav.org Bug-Id: CID 1267893
* avplay: Use av_gettime_relativeMartin Storsjö2014-10-24
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* avplay: Always free optsLuca Barbato2014-10-17
| | | | | CC: libav-stable@libav.org Bug-Id: CID 733793
* avplay: Always free find_stream_info optionsLuca Barbato2014-10-17
| | | | | CC: libav-stable@libav.org Bug-Id: CID 1238794
* avplay: Exit by default at the end of playbackDiego Biurrun2014-09-06
| | | | | | 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-15
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* avplay: Handle pixel aspect ratio properlyMartin Storsjö2014-07-08
| | | | | | | 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-10
|
* avplay: do not call avcodec_get_frame_defaults().Anton Khirnov2013-12-11
| | | | avcodec_decode_audio4() will reset the frame itself.
* Replace all uses of avcodec_free_frame with av_frame_free().Anton Khirnov2013-12-11
|
* Add missing #includes for *INT64_MAX and *INT64_CDiego Biurrun2013-11-23
|
* Replace all instances of avcodec_alloc_frame() with av_frame_alloc().Anton Khirnov2013-11-16
|
* avplay: drop -vismv option which does not do anything anymoreAnton Khirnov2013-10-31
|
* miscellaneous typo fixesDiego Biurrun2013-07-25
|
* avplay: remove a warningLuca Barbato2013-04-27
| | | | | | 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-11
| | | | Removes an arbitrary hardcoded limit on the number of filters.
* lavfi: merge avfiltergraph.h into avfilter.hAnton Khirnov2013-04-11
| | | | | 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-19
| | | | | It just shadows the corresponding AVOption and prevents using named constants.
* avplay: enable only when SDL 1.2 is foundVittorio Giovara2013-03-09
| | | | | | SDL 2 is API incompatible. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* avplay: switch to new refcounted frames APIAnton Khirnov2013-03-08
| | | | Remove now unused cmdutils get_buffer() implementation.
* avplay: apply the stream sample_aspect_ratio to decoded video framesVladimir Pantelic2013-02-09
| | | | | | | | | 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-29
| | | | | | Fixes build with lavfi disabled. Signed-off-by: Diego Biurrun <diego@biurrun.de>
* avplay: support mid-stream sample rate changesJustin Ruggles2012-10-13
| | | | Resample to the rate that was configured in SDL.
* avplay: use audio parameters from the decoded frame instead of AVCodecContextJustin Ruggles2012-10-13
|
* De-doxygenize some top-level filesDiego Biurrun2012-10-12
|
* Replace PIX_FMT_* -> AV_PIX_FMT_*, PixelFormat -> AVPixelFormatAnton Khirnov2012-10-08
|
* lavr: change the type of the data buffers to uint8_t**.Anton Khirnov2012-10-05
| | | | | | This is more consistent with what the rest of Libav does. This breaks API.