summaryrefslogtreecommitdiffstats
path: root/libmpdemux/demux_lavf.c
Commit message (Collapse)AuthorAgeFilesLines
* lavf: if seeking in the desired direction failed, also try in the opposite one,reimar2009-09-301-1/+4
| | | | | | | | otherwise we might end up at some random position (where lavf last ended up while trying to build the index). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29741 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add w64 to list of preferred lavf formats (otherwise demux_audio incorrectlyreimar2009-09-101-0/+1
| | | | | | | | claims the Wave64 files but can not handle them). Patch by Daniel Verkamp [daniel drv nu]. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29668 b3059339-0415-0410-9bf9-f77b7e298cf2
* Sort preferred_list alphabetically since the order does not matter otherwise.reimar2009-09-101-6/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29667 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add CODEC_ID_ADPCM_IMA_AMV to lavf codec_tag override list instead ofreimar2009-09-081-2/+0
| | | | | | | reimplementing that functionality. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29664 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix an endless loop if all programs are empty.reimar2009-09-081-0/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29660 b3059339-0415-0410-9bf9-f77b7e298cf2
* Always register all streams from libavformat, not just those belonging to a ↵reimar2009-09-081-5/+3
| | | | | | program. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29657 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add support for lavf vqf demuxer and lavc TwinVQ decoder.vitor2009-09-071-0/+1
| | | | | | | | | Also make lavf the default demuxer for vqf. Ok'ed by Compn on IRC. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29655 b3059339-0415-0410-9bf9-f77b7e298cf2
* Rename mp_wav_override_tag* as mp_codecid_override_tag* to reflect thatcehoyos2009-08-301-1/+2
| | | | | | | it now can be used for both audio and video. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29593 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use mp_wav_override_taglists for both audio and video.cehoyos2009-08-301-6/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29590 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use new libavformat metadata API.greg2009-08-111-10/+9
| | | | | | Patch by Anton Khirnov <wyskas@gmail.com>. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29497 b3059339-0415-0410-9bf9-f77b7e298cf2
* AVStream.language is deprecated, switch to av_get_metadata instead.reimar2009-06-241-4/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29386 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move allocation to avoid a possible memleak if new_sh_audio fails.reimar2009-06-241-1/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29385 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove pointless stream count checks, new_sh_* already checks for that.reimar2009-06-241-6/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29384 b3059339-0415-0410-9bf9-f77b7e298cf2
* Print ID_AID_???_LANG and ID_SID_???_LANG in lavf demuxer so that frontendsreimar2009-06-241-2/+6
| | | | | | | can correctly display the languages of audio and subtitle tracks. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29383 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add const where appropriate, also gets rid of a compiler warning.reimar2009-06-011-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29338 b3059339-0415-0410-9bf9-f77b7e298cf2
* 100l, do not read probe buffer if it will not be used because a format was ↵reimar2009-06-011-6/+7
| | | | | | forced. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29337 b3059339-0415-0410-9bf9-f77b7e298cf2
* In all demux_info_add calls change "name" to "title".reimar2009-05-301-1/+1
| | | | | | | | | Currently "name" and "title" are both used at random, this makes it consistent. "title" was chosen because it is less ambiguous and also the get_meta_title slave mode command uses that (there is no get_meta_name command). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29330 b3059339-0415-0410-9bf9-f77b7e298cf2
* Increase probe buffer size to 32kB, this makes ac3 auto-detection far more ↵reimar2009-04-011-1/+1
| | | | | | reliable. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29121 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix compilation: s/ff_gcd/av_gcd.cehoyos2009-01-171-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28338 b3059339-0415-0410-9bf9-f77b7e298cf2
* Get rid of pointless 'extern' keywords.diego2008-12-031-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28085 b3059339-0415-0410-9bf9-f77b7e298cf2
* fix compilation w/ FFmpeg r15533gpoirier2008-10-031-2/+2
| | | | | | | patch by Andrew Wason %rectalogic A rectalogic P com% git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27688 b3059339-0415-0410-9bf9-f77b7e298cf2
* riff.h and avi.h are not needed, but avio.h is.diego2008-09-151-2/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27616 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make internal Matroska demuxer default againuau2008-09-091-1/+0
| | | | | | | | | | Undo Aurelien's previous commit which made the lavf demuxer the default. SSA/ASS subtitles do not work properly with the lavf demuxer at the moment. That's much more important than any issues with the internal demuxer. The internal demuxer must remain the default at least until the subtitle issues are resolved. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27556 b3059339-0415-0410-9bf9-f77b7e298cf2
* revert r27551 which break much more things than it fixesaurel2008-09-091-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27555 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use internal demuxer for Matroska files for nowuau2008-09-081-1/+0
| | | | | | | | | Change the default demuxer back to the internal one at least until the current lavf breakage with SSA/ASS subtitles is sorted out. There have also been quite a few other regressions so maybe the lavf demuxer should be tested a bit more before trying to make it the default again. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27551 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix compilation after libavcodec major version 52 changesuau2008-09-081-2/+2
| | | | | | | | | | | Some symbols were dropped or renamed, requiring corresponding changes in MPlayer. - Use AVCodecContext->bits_per_coded_sample instead of ->bits_per_sample. - Use AVCodecContext->trellis instead of ->flags&CODEC_FLAG_TRELLIS_QUANT. - Don't set AVCodecContext->rtp_mode (already marked unused before). - Use ff_eval2() instead of ff_eval(). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27548 b3059339-0415-0410-9bf9-f77b7e298cf2
* lavf: the subtitles display duration is stored in pkt.convergence_durationaurel2008-09-041-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27525 b3059339-0415-0410-9bf9-f77b7e298cf2
* prefer libavformat to demux matroska filesaurel2008-08-261-0/+1
| | | | | | | I can't spot any regression anymore. If you find one, please tell me. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27484 b3059339-0415-0410-9bf9-f77b7e298cf2
* cosmetics: indentationaurel2008-08-241-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27480 b3059339-0415-0410-9bf9-f77b7e298cf2
* use new lavf API to grab sample_aspect_ratio from the demuxersaurel2008-08-241-0/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27479 b3059339-0415-0410-9bf9-f77b7e298cf2
* demux_lavf: fix mp_seek behavior in case of seeking erroraurel2008-08-131-1/+6
| | | | | | | | | | | | When trying to seek past the end of file, the ByteIOContext expect that the stream is left in the same state as it was before the tentative seek. stream_seek() does not meet this expectation. It changes current position when seeking past the end of file. Thus, it is necessary to reset the stream to its previous state after a seek failure. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27459 b3059339-0415-0410-9bf9-f77b7e298cf2
* 1000l, fix demux_lavf compilationreimar2008-07-111-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27251 b3059339-0415-0410-9bf9-f77b7e298cf2
* Correct stream-seekability tests in demux_audio and demux_lavfreimar2008-07-111-1/+1
| | | | | | | Based on a patch by Alexander Kanavin (alexander.kanavin nokia com) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27250 b3059339-0415-0410-9bf9-f77b7e298cf2
* Chapter support for lavf demuxer.reimar2008-06-161-0/+7
| | | | | | | Patch by Anton Khirnov [wyskas gmail com] git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27090 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use standard license headers with standard formatting.diego2008-05-141-16/+18
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26774 b3059339-0415-0410-9bf9-f77b7e298cf2
* AVOption support for lavf demuxingmichael2008-05-101-0/+10
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26728 b3059339-0415-0410-9bf9-f77b7e298cf2
* Prefer libavformat musepack demuxer over internal one (which does not even ↵reimar2008-04-161-0/+2
| | | | | | support v8). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26455 b3059339-0415-0410-9bf9-f77b7e298cf2
* Split the lavf taglists out of the lavf muxer to allow using libmpmuxalbeu2008-04-091-58/+2
| | | | | | | without libmpdemux. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26360 b3059339-0415-0410-9bf9-f77b7e298cf2
* Set correct codec tag for raw rgb in mov, fixesreimar2008-04-051-0/+6
| | | | | | | http://samples.mplayerhq.hu/mov/rawbgr24.mov git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26326 b3059339-0415-0410-9bf9-f77b7e298cf2
* Support 'default' attribute for audio and subtitle tracks.eugeni2008-03-301-0/+4
| | | | | | | | | The first default track is chosen for playback if language-based selection failes. Additionally, for audio tracks, the first one is chosen if there are no default tracks at all. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26301 b3059339-0415-0410-9bf9-f77b7e298cf2
* Support switching to/from nosound in demux_lavf.eugeni2008-02-291-14/+8
| | | | | | | | Also fixes a bug when pstreams[-1] could be accessed. It happens when switching audio tracks if mplayer was run with '-nosound'. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26126 b3059339-0415-0410-9bf9-f77b7e298cf2
* Don't select audio stream in lavf and mkv demuxers.eugeni2008-02-291-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26123 b3059339-0415-0410-9bf9-f77b7e298cf2
* Don't select subtitle track in lavf and mkv demuxers.eugeni2008-02-291-7/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26120 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fill sh_sub_t.lang in lavf, mkv and ogg demuxers. Use it for printing subtitleeugeni2008-02-291-13/+2
| | | | | | | track language. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26116 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fill sh_audio_t.lang in lavf and mkv demuxers. Use it for printing audio trackeugeni2008-02-291-0/+2
| | | | | | | language when available. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26115 b3059339-0415-0410-9bf9-f77b7e298cf2
* FFmpeg now uses different (unified) #include paths.diego2008-02-251-11/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26101 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix r26032: wrong sub stream id assigned to dvdsub_id.eugeni2008-02-211-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26046 b3059339-0415-0410-9bf9-f77b7e298cf2
* Support -slang in lavf demuxer.eugeni2008-02-191-1/+10
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26032 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add speex tagreimar2008-02-061-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25958 b3059339-0415-0410-9bf9-f77b7e298cf2
* Allow demuxers to choose a default value for correct_ptsreimar2008-02-031-1/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25951 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add support for attachments in lavf demuxer.eugeni2008-01-301-0/+7
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25932 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix r25817 to not always destroy codec_tag, this broke playback of e.g. ape ↵reimar2008-01-291-3/+6
| | | | | | files. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25914 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use defines to give names to the different seek flags.reimar2008-01-291-2/+2
| | | | | | | | A better solution should be considered later, esp. for the many broken demuxers that do not treat these flags correctly. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25911 b3059339-0415-0410-9bf9-f77b7e298cf2
* Support CODEC_ID_MOV_TEXTreimar2008-01-281-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25907 b3059339-0415-0410-9bf9-f77b7e298cf2
* Prefer lavf mov demuxer over our own, it should work better most of the time ↵reimar2008-01-271-0/+1
| | | | | | now. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25874 b3059339-0415-0410-9bf9-f77b7e298cf2
* 100l, inverted condition for AVSEEK_FLAG_BACKWARDreimar2008-01-261-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25871 b3059339-0415-0410-9bf9-f77b7e298cf2
* Used wrong condition for using AVSEEK_FLAG_BACKWARD, it should depend onreimar2008-01-261-2/+3
| | | | | | | relative vs. absolute, not time- vs. percent-based seek. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25870 b3059339-0415-0410-9bf9-f77b7e298cf2
* Cosmetics: remove some trailing whitespacereimar2008-01-261-17/+17
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25869 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add QDM2 codec identifierreimar2008-01-261-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25868 b3059339-0415-0410-9bf9-f77b7e298cf2
* Partially support vobsub subtitles from lavf demuxers (palette support missing)reimar2008-01-261-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25867 b3059339-0415-0410-9bf9-f77b7e298cf2
* Allow overriding the codec_tag for audio codecs, and always override rtogni2008-01-201-3/+13
| | | | | | | | | | codec_tag for PCM codecs (codec_id from lavf is correct, but the codec_tag may be non-zero and wrong). Also fixes bugzilla #983 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25817 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make all demuxer_desc_t const, thus moving them to .rodatareimar2008-01-131-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25735 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add libass support to demux_lavf.eugeni2008-01-121-2/+12
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25687 b3059339-0415-0410-9bf9-f77b7e298cf2
* 100l, fix compilation.reimar2007-12-221-2/+2
| | | | | | | Commited old patch that used alloc_put_byte instead of av_alloc_put_byte git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25506 b3059339-0415-0410-9bf9-f77b7e298cf2
* Set is_streamed correctly, should make network playback work more reliably.reimar2007-12-221-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25500 b3059339-0415-0410-9bf9-f77b7e298cf2
* Get rid of URLProtocol mess (especially problematic since it made usereimar2007-12-221-34/+12
| | | | | | | of a non-constant global variable) and use ByteIOContext directly. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25499 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make m_option_t arrays referenced by cfg-common.h constreimar2007-12-021-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25269 b3059339-0415-0410-9bf9-f77b7e298cf2
* Bring (de)muxer_lavf up to date with the libavformat API changes introduced ↵iive2007-11-231-3/+3
| | | | | | | | | | | by FFmpeg commit r11071. Patch for demuxer_lavf.c by Chris Welton - electrostatic_1 at yahoo Patch for muxer_lavf.c by me. Approved by michaelni. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25145 b3059339-0415-0410-9bf9-f77b7e298cf2
* Musepack SV8 lavc decoder supportkostya2007-11-201-0/+1
| | | | | | | Patch okayed by Diego on IRC git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25120 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove unused variable:diego2007-10-301-1/+1
| | | | | | | demux_lavf.c:441: warning: unused variable 'g' git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24896 b3059339-0415-0410-9bf9-f77b7e298cf2
* reindented previously modified codenicodvb2007-10-271-4/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24876 b3059339-0415-0410-9bf9-f77b7e298cf2
* implemented DEMUXER_CTRL_IDENTIFY_PROGRAM to permit program switchingnicodvb2007-10-271-0/+54
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24873 b3059339-0415-0410-9bf9-f77b7e298cf2
* permit identification and selection of programsnicodvb