Commit Graph

2787 Commits

Author SHA1 Message Date
Aurelien Jacobs
fd402a5a63 add support for PCM codec
Originally committed as revision 10798 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-18 23:05:30 +00:00
Aurelien Jacobs
93fa8b2bf5 check compression_type to assign audio codec
Originally committed as revision 10797 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-18 22:53:37 +00:00
Aurelien Jacobs
e5d34ab6d0 make compression_type a function local var instead of a context var
Originally committed as revision 10796 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-18 22:47:56 +00:00
Aurelien Jacobs
97e5dcc0f3 add support for big_endian encoded headers
Originally committed as revision 10795 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-18 22:39:27 +00:00
Aurelien Jacobs
2c82386df2 add some error processing
Originally committed as revision 10794 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-18 22:32:26 +00:00
Aurelien Jacobs
fa34563b2c cosmetics: indentation
Originally committed as revision 10793 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-18 22:27:27 +00:00
Aurelien Jacobs
f8cab062ca parse header chunk in a loop (don't depend on a fixed chunk ordering)
Originally committed as revision 10792 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-18 22:26:23 +00:00
Aurelien Jacobs
af704ee420 add audio and video codec context vars
Originally committed as revision 10791 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-18 22:23:30 +00:00
Aurelien Jacobs
080b1c8238 better log message
Originally committed as revision 10790 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-18 22:11:53 +00:00
Aurelien Jacobs
f409743084 move vp6 header parsing into its own function
Originally committed as revision 10789 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-18 22:01:30 +00:00
Aurelien Jacobs
3773e5fc1b remove 2 temporary variables
Originally committed as revision 10788 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-18 21:59:23 +00:00
Aurelien Jacobs
9853ce8074 set a default value for num_channels
Originally committed as revision 10787 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-18 21:56:44 +00:00
Aurelien Jacobs
215eb1028d move audio header parsing in its own function
Originally committed as revision 10786 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-18 21:55:51 +00:00
Aurelien Jacobs
d51bd73ce6 add a log message
Originally committed as revision 10785 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-18 21:45:53 +00:00
Aurelien Jacobs
1680692a6c fix comment
Originally committed as revision 10784 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-18 21:30:33 +00:00
Aurelien Jacobs
98942fb2c9 small simplification
Originally committed as revision 10783 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-18 21:03:10 +00:00
Thorsten Jordan
f97931c122 set start_time to 0 to enable seeking in mp3-files
patch by Thorsten Jordan, tjordan macrosystem de

Originally committed as revision 10780 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-18 15:02:34 +00:00
Ronald S. Bultje
c5be140c9a Make url_split() strip url options (?opt=var) from the returned hostname or
location. This fixes a regression introduced by the rewrite of
url_split() in r10605.

Patch by Ronald S. Bultje: rsbultje gmail com
Original thread: [FFmpeg-devel] [PATCH] Make RTP work with IPv6 enabled
Date: 10/12/2007 08:19 PM

Originally committed as revision 10775 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-18 09:50:53 +00:00
Diego Biurrun
5b21bdabe4 Add FFMPEG_ prefix to all multiple inclusion guards.
Originally committed as revision 10765 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-17 09:37:46 +00:00
Diego Biurrun
52703a6459 Use filename as multiple inclusion guard.
Originally committed as revision 10760 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-17 09:16:21 +00:00
Benoit Fouet
0f652a8ee3 Re-enable DEBUG_SEEK flag.
Originally committed as revision 10758 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-16 19:50:08 +00:00
Baptiste Coudurier
86161ceca1 dont write udta atom for 3gp/3g2 for now, current written atoms (ilst) are itunes specific
Originally committed as revision 10757 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-16 16:40:34 +00:00
Baptiste Coudurier
00996920ed indentation
Originally committed as revision 10756 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-16 15:40:57 +00:00
Patric Stout
ed7b48b205 Fix streaming to XBox360.
Patch by Patric Stout, patric T liefdeis O com
Original thread:
Subject: asf-format doesn't work as stream for XBox360
Date: 2007-10-14

Originally committed as revision 10755 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-15 23:55:14 +00:00
Aurelien Jacobs
227a388d07 cosmetics: reindent
Originally committed as revision 10753 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-15 22:52:22 +00:00
Aurelien Jacobs
d3e412d0cc add support for VP6 in electronicarts demuxer
Originally committed as revision 10752 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-15 22:51:52 +00:00
Aurelien Jacobs
c03c4cac82 remove useless &0xFF
Originally committed as revision 10751 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-15 22:51:15 +00:00
Aurelien Jacobs
a066c5b7c9 merge declaration and initialization
Originally committed as revision 10750 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-15 22:50:36 +00:00
Aurelien Jacobs
df2eef0fef remove unused context vars
Originally committed as revision 10749 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-15 22:50:10 +00:00
Aurelien Jacobs
059baac9c8 remove unused code
Originally committed as revision 10748 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-15 22:49:31 +00:00
Aurelien Jacobs
c3527cc973 remove unused tags definition
Originally committed as revision 10747 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-15 22:49:00 +00:00
Aurelien Jacobs
0cf3fbc2ab remove unused close function
Originally committed as revision 10746 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-15 22:48:31 +00:00
Aurelien Jacobs
269b94e346 simplify bitstream reading
Originally committed as revision 10745 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-15 22:47:41 +00:00
Thorsten Jordan
c7be25856a Undefine DEBUG_SEEK.
Patch by Thorsten Jordan: tjordan macrosystem de

Originally committed as revision 10742 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-15 18:03:28 +00:00
Benjamin Larsson
636b13c5fc Nellymoser ASAO decoder
Originally committed as revision 10741 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-15 16:26:02 +00:00
Diego Biurrun
5d25d2a983 cosmetics: Move asf_read_close() down to get rid of a forward declaration.
Originally committed as revision 10735 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-14 17:44:38 +00:00
Benoit Fouet
fe0b9a6464 Increment minor after r10709.
Originally committed as revision 10734 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-14 13:32:25 +00:00
Måns Rullgård
972c5f9e10 simply buffer checks in vorbis_comment()
Originally committed as revision 10725 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-13 11:43:03 +00:00
Måns Rullgård
0a770ae7b4 use bytestream_get_* in vorbis_comment()
Originally committed as revision 10724 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-13 11:42:06 +00:00
Ramiro Polla
29a7b8ef27 Fix memleak
Closes issue 102

Originally committed as revision 10719 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-12 23:25:48 +00:00
Björn Axelsson
770d9dafa1 Add functionality to set the direction of a ByteIOContext buffer.
Patch by Björn Axelsson bjorn axelsson intinor se
Original thread: [FFmpeg-devel] [PATCH] MMS protocol support patch 1
Date: 09/19/2007 05:51 PM

Originally committed as revision 10709 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-11 14:57:47 +00:00
Måns Rullgård
736e63edc8 check values more thoroughly in vorbis_header()
Originally committed as revision 10707 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-10 22:59:36 +00:00
Måns Rullgård
739587bf04 use bytestream_get_* in vorbis_header()
Originally committed as revision 10706 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-10 22:59:34 +00:00
Måns Rullgård
f5475e1b38 fix buffer overread with invalid Vorbis header
Originally committed as revision 10705 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-10 22:59:31 +00:00
Måns Rullgård
62f2c069b8 remove duplicate Vorbis comment tag handling
Originally committed as revision 10704 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-10 22:58:16 +00:00
Reimar Döffinger
ce3132be88 Remove ogg seek function, instead use generic seek via read_timestamp function
Originally committed as revision 10702 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-10 10:33:20 +00:00
Reimar Döffinger
a1f29b959b Add a read_timestamp function to ogg demuxer
Originally committed as revision 10701 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-10 10:33:07 +00:00
Michael Niedermayer
ec62727818 indent
Originally committed as revision 10693 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-09 01:12:27 +00:00
Michael Niedermayer
4838727ea0 avoid generating invalid files
fixes issue213

Originally committed as revision 10692 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-09 01:01:07 +00:00
Baptiste Coudurier
68bc33fa9f append extradata atoms when parsing, fix OLOCOONS_O3.mov
Originally committed as revision 10688 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-08 13:06:48 +00:00
Baptiste Coudurier
fc4cbc1699 DNxHD (SMPTE VC-3) encoder
Originally committed as revision 10682 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-08 11:27:18 +00:00
Luca Abeni
e0d21bfe83 Allow to set the maximum number of frames per RTP packet (and add support for
this in the AAC packetizer)

Originally committed as revision 10647 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-02 14:48:08 +00:00
Ronald S. Bultje
3303926c2f Add checking for codecid to has_codec_parameters().
patch by Ronald S. Bultje, rsbultje gmail com
Date: Sat, 29 Sep 2007 09:25:52 -0400
Subject: [FFmpeg-devel] [PATCH] has_codec_parameters() addition

Originally committed as revision 10636 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-01 22:11:10 +00:00
Justin Ruggles
bf41512100 dnet audio needs avparser to work with the lavc ac3 decoder.
Fixes issue 121
Patch by Justin Ruggles

Originally committed as revision 10634 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-01 19:48:02 +00:00
Vladimir Voroshilov
0b04ebb326 Add support for AMV variants of AVI files.
patch by Vladimir Voroshilov, voroshil gmail com
Date: Sun, 30 Sep 2007 00:30:34 +0700
Subject: Re: [FFmpeg-devel] [PATCH] Demuxer for AMV files

Originally committed as revision 10623 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-29 22:47:34 +00:00
Ronald S. Bultje
f8f88a42cf Add IPv6 support to url_split()
patch by: Ronald S. Bultje rsbultje a gmail d com
thread: "[PATCH] url_split() ipv6 support" at 2007/Sep/23 18:43

Originally committed as revision 10615 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-29 14:35:52 +00:00
Björn Axelsson
3576f9c629 Documentation fix for url_f(d)open()
Patch by Björn Axelsson bjorn axelsson intinor se

Originally committed as revision 10608 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-28 15:12:26 +00:00
Ronald S. Bultje
7e1e297ee3 refactor url_split(), preparing for IPv6 support
patch by: Ronald S. Bultje rsbultje a gmail d com
thread: "[PATCH] url_split() ipv6 support" at 09/23/07 18:43

Originally committed as revision 10605 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-27 19:18:07 +00:00
Ramiro Polla
53b7336500 Fix avisynth compilation after allformats.h was removed
Originally committed as revision 10594 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-26 18:37:20 +00:00
Aurelien Jacobs
b925ef61dd add support for AVI files with On2 header
Originally committed as revision 10591 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-26 12:30:24 +00:00
Aurelien Jacobs
7b31b0929c use a table to parse AVI file header
Originally committed as revision 10590 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-26 12:29:32 +00:00
Benoit Fouet
2d89f334f4 Indentation
Originally committed as revision 10589 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-26 11:33:30 +00:00
Benoit Fouet
602dd8f6c4 Check read_packet before using it.
Originally committed as revision 10588 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-26 11:32:51 +00:00
Nico Sabbi
172d1171d2 added structures and code to keep track of pids<->programs mapping: it's needed
to decide which pids to discard in order to feed to the caller only AVProgram(s)
that have the AV_DISCARD_ALL flag not set

Originally committed as revision 10581 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-25 20:58:37 +00:00
Nico Sabbi
1d257254f1 replaced custom tracking of programs/services with calls to with av_new_program()
Originally committed as revision 10580 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-25 20:49:11 +00:00
Nico Sabbi
15afa396e4 Added definition and utility functions to handle AVProgram(s) in AVFormatContext
Originally committed as revision 10579 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-25 20:45:46 +00:00
Aurelien Jacobs
9990460353 use the VP6A codec
Originally committed as revision 10578 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-25 19:30:03 +00:00
Aurelien Jacobs
df63f130c8 revert r10527
There is now a proper vp6a codec, so no need for this hack anymore.

Originally committed as revision 10577 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-25 19:25:59 +00:00
Luca Abeni
0ebecca52c Add my name to the copyright header, since rtp_mpv now contains
a fair amount of code written by me

Originally committed as revision 10563 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-24 12:15:42 +00:00
Luca Abeni
d0c3be9568 Fix a warning by removing an useless assignment (buf_ptr should be only
used in the RTP muxer, and not in the demuxer)

Originally committed as revision 10561 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-24 10:43:26 +00:00
Kostya Shishkov
c1f3c63058 Looks like this APE decoder support versions starting from 3.95
Originally committed as revision 10551 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-23 07:40:34 +00:00
Michael Niedermayer
fffd6a5fe0 indent
Originally committed as revision 10545 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-22 08:58:49 +00:00
Michael Niedermayer
638f489ccd fix segfault with http://samples.mplayerhq.hu/nsv/nsv_samples/ot171_novideo.nsv.bz2
bug introduced in r8466
closes issue179

Originally committed as revision 10544 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-22 08:55:17 +00:00
Baptiste Coudurier
32bbb99d0a HDYC fourcc, sample hdyc/Test2.avi
Originally committed as revision 10541 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-21 18:23:46 +00:00
Baptiste Coudurier
3a319ab6aa add D-10 NTSC support
Originally committed as revision 10539 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-21 16:30:58 +00:00
Baptiste Coudurier
28cf721574 extract correct d10 aes3 audio channels number
Originally committed as revision 10538 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-21 16:28:17 +00:00
Aurelien Jacobs
dee15eceae allcodecs.h and allformats.h are not used anymore
Originally committed as revision 10536 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-20 20:42:50 +00:00
Aurelien Jacobs
d999cff5a3 remove last dependencies on allformats.h and allcodecs.h
Originally committed as revision 10535 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-20 20:36:15 +00:00
Diego Biurrun
a889bf135e cosmetics: typo
Originally committed as revision 10534 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-19 21:28:42 +00:00
Stefano Sabatini
f94361612a Make parse_date return INT64_MIN in case of unparsable input.
Patch by Stefano Sabatini: [stefano sabatini-lala poste it]
Original thread:
[FFmpeg-devel] [PATCH] Enhace documentation forlibavformat/utils.c:parse_date
Date: 08/17/2007 09:40 PM

Originally committed as revision 10533 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-19 12:38:07 +00:00
Aurelien Jacobs
f84c357325 Add support for VP6A in flv.
Those files really contain 2 standard VP6 video streams:
 - the "normal" video stream
 - the alpha plan video stream (which is a standard
   YV12 video with it's U an V plans all set to 0)
closes issue166

Originally committed as revision 10527 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-18 15:36:29 +00:00
Stefano Sabatini
a8f70d72c3 Add explanatory comments to the parse_date function.
patch by Stefano Sabatini, stefano.sabatini-lala poste it

Originally committed as revision 10525 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-18 08:26:10 +00:00
Aurelien Jacobs
7f559eb1cd disable loads of debug messages to reduce object size
Originally committed as revision 10518 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-17 12:01:37 +00:00
Aurelien Jacobs
6369638bf0 loosen dependencies over allformats.h
Originally committed as revision 10513 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-16 23:00:44 +00:00
Benjamin Zores
781ad2f50a monkey audio demuxer now can parse ape tags
Originally committed as revision 10511 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-16 19:51:10 +00:00
Diego Biurrun
0ab1ebea31 warning fix:
nutdec.c: In function ‘nut_read_timestamp’:
nutdec.c:759: warning: label ‘resync’ defined but not used

Originally committed as revision 10506 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-16 14:37:01 +00:00
Reimar Döffinger
efd7428666 Set codec_id correctly for RJPG codec_tag
Originally committed as revision 10498 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-15 08:19:01 +00:00
Luca Abeni
1a3a0a79b6 Support fragmentation for AAC frames
Originally committed as revision 10492 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-14 09:00:31 +00:00
Luca Abeni
171dce486c Support for AAC streaming over RTP. Fragmentation is not implemented yet
Originally committed as revision 10491 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-14 08:17:06 +00:00
Benoit Fouet
411f5c6abd Forward error code when reading a v4l2 frame
Patch by Benoit Fouet (benoit.fouet AT purplelabs DOT com)

Originally committed as revision 10487 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-13 12:46:30 +00:00
Kostya Shishkov
bf4a1f17ee Monkey Audio decoder
Originally committed as revision 10484 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-13 03:22:47 +00:00
Baptiste Coudurier
aaac6c29d2 stop parsing udta if size is wrong/garbage, fix issue 154, fix RQ004F14.MOV
Originally committed as revision 10481 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-12 10:18:01 +00:00
Ramiro Polla
89938d29b5 Typo
Originally committed as revision 10478 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-11 23:46:46 +00:00
Aurelien Jacobs
7241a6bb50 move unrelated functions declarations out of allformats.h
Originally committed as revision 10475 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-11 09:27:46 +00:00
Aurelien Jacobs
b156b88c13 rtp and rtsp demuxer declarations are not part of public API
Originally committed as revision 10474 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-10 22:48:42 +00:00
Ramiro Polla
ac6577cd71 Bump micro version number for r10429
Originally committed as revision 10473 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-10 19:31:03 +00:00
Aurelien Jacobs
dde1f9285a *_protocol are not part of public API
Originally committed as revision 10472 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-10 18:11:13 +00:00
Luca Abeni
21b3748029 Test extradata_size instead of the CODEC_FLAG_GLOBAL_HEADER flag to check if
config info are available out of band (fix "-{a,v}codec copy" from .mov)

Originally committed as revision 10471 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-10 15:08:23 +00:00
Luca Abeni
af74c95a08 Fix timestamps in RTP packets (now, MPEG1 video with B frames works correctly)
Originally committed as revision 10469 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-10 07:01:29 +00:00
Luca Abeni
1b31b02ed1 Properly set RTP and NTP timestamps in RTCP SR packets
Originally committed as revision 10468 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-10 06:58:19 +00:00
Patrice Bensoussan
6ec14b333d Improve track number decoding for some WMA files
patch by Patrice Bensoussan %patrice P bensoussan A free P fr%
Original thread:
Date: Sep 9, 2007 12:33 PM
Subject: [FFmpeg-devel] [PATCH] Improve track number decoding for some WMA files

Originally committed as revision 10462 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-09 17:54:26 +00:00
Reimar Döffinger
7a562a31a3 Do not set codec_tag when the container does not specify it.
Originally committed as revision 10445 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-09 09:21:14 +00:00
Reimar Döffinger
dd6ca72186 Copy nuv header only when the video codec is nuv
Originally committed as revision 10439 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-09 07:25:52 +00:00
Ramiro Polla
1156c6b05f Rename the format name audio_device (used in both oss and audio_beos) to oss and audio_beos.
-f oss and -f audio_beos should be used instead.

Originally committed as revision 10429 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-07 13:49:44 +00:00
Ramiro Polla
50383e8822 Separate audio_(de)muxer into oss_(de)muxer and audio_beos_(de)muxer
Originally committed as revision 10426 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-07 13:43:40 +00:00
David Conrad
c3ce416105 Use V_MPEG4/ISO/ASP for mpeg4 when muxing mkv
Originally committed as revision 10421 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-06 05:14:09 +00:00
Kostya Shishkov
1ddcd07fda Set correct length for last slice in frame subpacket
Originally committed as revision 10420 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-06 03:36:38 +00:00
Diego Biurrun
e648863560 cosmetics: Add some whitespace for better readability.
Originally committed as revision 10418 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 20:42:17 +00:00
Diego Biurrun
bf898960a7 spelling/wording nits in some Doxygen comments
Originally committed as revision 10417 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 20:31:40 +00:00
Ramiro Polla
4df7c7d8d6 Rename dc1394.c to libdc1394.c
Originally committed as revision 10415 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 18:57:03 +00:00
Ramiro Polla
5fdb9cc50a Prefix library format names with 'lib' in libavformat
Originally committed as revision 10414 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 18:55:20 +00:00
Ramiro Polla
7b1b62b23d Give better filenames to bktr and v4l grabbers
Originally committed as revision 10412 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 18:44:06 +00:00
Ramiro Polla
fd484da77a Remove video_grab_ prefix from video_grab_{bktr,v4l}
Originally committed as revision 10411 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 18:29:58 +00:00
Michael Niedermayer
6a058d90b5 revert 10409
there is no need for put_timestamp to be exported it is not used outside the
PES code

Originally committed as revision 10410 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 17:25:39 +00:00
Michael Niedermayer
8baaee65ba export put_timestamp()
this will be needed for spliting the PES muxer code out

Originally committed as revision 10409 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 17:14:25 +00:00
Neil Brown
c1e8b67869 Make sure that if a stream has a duration but the container doesn't
then the container duration is set from the stream duration.

patch by Neil Brown: [ neilb suse de]
original thread: [FFmpeg-devel] [patch 3/3] Make timing calculations
less dependant on start_time being defined.
date: 08/16/2007 08:27 AM

Originally committed as revision 10408 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 16:47:48 +00:00
Wolfram Gloger
cc5297e871 Correct initial timestamp
Patch by Wolfram Gloger: [wmglo $ dent med uni-muenchen de]
Original thread:
[FFmpeg-devel] [PATCH] av_estimate_timings_from_pts corrupt timestamps
date: 08/25/2007 09:51 PM

Originally committed as revision 10405 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 14:11:33 +00:00
Luca Abeni
4901263abd AAC support in the SDP generator
Originally committed as revision 10398 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 06:30:59 +00:00
David Conrad
e09f7d61da Enable Matroska muxer
Originally committed as revision 10389 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:38:42 +00:00
David Conrad
ab332d0133 Grammar nits
Originally committed as revision 10388 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:26:11 +00:00
David Conrad
b62a33d01b Always use AVFormatContext for av_log messages
Originally committed as revision 10387 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:26:09 +00:00
David Conrad
0f651e8cf3 Rename ebml size functions to indicate that they can be used for more kinds of numbers
Originally committed as revision 10386 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:26:07 +00:00
David Conrad
8b65b9a313 We shouldn't be passing in sizes larger than 2^56-2, so use an assert
Originally committed as revision 10385 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:26:04 +00:00
David Conrad
e5c29287cf Indentation
Originally committed as revision 10384 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:26:03 +00:00
David Conrad
ac9e1177b3 Don't seek when streamed
Originally committed as revision 10383 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:26:00 +00:00
David Conrad
c301d5ae0a Get rid of useless braces
Originally committed as revision 10382 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:25:58 +00:00
David Conrad
7e33d3fee4 Indent
Originally committed as revision 10381 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:25:56 +00:00
David Conrad
dc4a9f6737 Match the behaviour betwen the bmp and wav codec tag lookups
Originally committed as revision 10380 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:25:54 +00:00
David Conrad
46d18a88e1 Write codecprivate to a dynamic buffer so that seeking isn't required
Originally committed as revision 10379 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:25:52 +00:00
David Conrad
5c559894e1 Move writing codec private element to its own function
Originally committed as revision 10378 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:25:49 +00:00
David Conrad
211783a50a Cosmetics
Originally committed as revision 10377 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:25:46 +00:00
David Conrad
91ca969082 Use num_entries directly rather than mixing it with a local copy
Originally committed as revision 10376 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:25:44 +00:00
David Conrad
e3cd80cdac Doxygenify comments
Originally committed as revision 10375 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:25:42 +00:00
David Conrad
7f8582dfc6 Make sure that the calculated duration doesn't decrease
Originally committed as revision 10374 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:25:40 +00:00
David Conrad
8ffc5f9e92 Split some really long lines
Originally committed as revision 10373 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:25:38 +00:00
David Conrad
3967eb5260 Correct message
Originally committed as revision 10372 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:25:35 +00:00
David Conrad
9e2a3e2262 Always check the return of mkv_add_seekhead_entry
Originally committed as revision 10371 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:25:34 +00:00
David Conrad
6d588ecd76 Pass the returned error code of functions up
Originally committed as revision 10370 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:25:32 +00:00
David Conrad
c35de1a131 Check that the seekheads were created
Originally committed as revision 10369 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:25:29 +00:00
David Conrad
0b38843a6c Return AVERROR(ENOMEM) when appropriate
Originally committed as revision 10368 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:25:27 +00:00
David Conrad
47e08c5860 Indentation
Originally committed as revision 10367 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:25:24 +00:00
David Conrad
0580a12256 Use assert for conditions that must be true
Originally committed as revision 10366 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:25:22 +00:00
David Conrad
203cce9a92 Simplify
Originally committed as revision 10365 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:25:20 +00:00
David Conrad
8cf3bb2674 Grammar nits
Originally committed as revision 10364 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:25:18 +00:00
David Conrad
cfde5d18f5 Break long comments
Originally committed as revision 10363 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:25:16 +00:00
David Conrad
a6da1aa057 Use sample format for bit depth if av_get_bits_per_sample() doesn't give one
Originally committed as revision 10362 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:25:14 +00:00
David Conrad
8eb1915395 Calculate and store DAR rather than SAR
Originally committed as revision 10361 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:25:07 +00:00
David Conrad
5045da831b Clarify comments
Originally committed as revision 10360 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:25:04 +00:00
David Conrad
5b66fc16af Use PRIu64/PRId64
Originally committed as revision 10359 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:24:58 +00:00
David Conrad
baf71dca28 Calculate the size of key EBML master elements beforehand so only just enough size is reserved for the size
Originally committed as revision 10358 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:24:56 +00:00
David Conrad
cce800b456 Use cluster_pos when checking cluster position
Originally committed as revision 10357 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:24:53 +00:00
David Conrad
f0e9f44271 Modify put_ebml_size() so that the bytes parameter is exact rather than minimum
Originally committed as revision 10356 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:24:50 +00:00
David Conrad
c635497cb4 Set default subtitle_codec to CODEC_ID_TEXT
Originally committed as revision 10355 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:24:48 +00:00
David Conrad
ddf1646729 Simplify
Originally committed as revision 10354 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:24:44 +00:00
David Conrad
1c73478c8e Move calculating the bytes needed to represent a size in EBML to its own function
Originally committed as revision 10353 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:24:42 +00:00
David Conrad
9f38fd7efa Make a byte always mean a byte
Originally committed as revision 10352 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:24:39 +00:00
David Conrad
432adc130c Simplify put_ebml_id()
Originally committed as revision 10351 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:24:36 +00:00
David Conrad
22ccb69a7f Move ebml_id_size()
Originally committed as revision 10350 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:24:34 +00:00
David Conrad
ec8f4ad909 Correct handling of smaller unknown sizes
Originally committed as revision 10349 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:24:31 +00:00
David Conrad
541d443c03 Use a MD5 hash of some frames to write the segment uid
Originally committed as revision 10348 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:24:29 +00:00
David Conrad
f095a17423 Revert using the time to generate the segment uid
Originally committed as revision 10347 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:24:27 +00:00
David Conrad
57848e9abd Doxygenize some comments
Originally committed as revision 10346 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:24:25 +00:00
David Conrad
fd150eb629 Set the language to undefined if no language specified
Originally committed as revision 10345 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:24:22 +00:00
David Conrad
55c151efb3 Add mka muxer
Originally committed as revision 10344 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:24:19 +00:00
David Conrad
c1f5aa2186 Add some debug logging
Originally committed as revision 10343 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:24:17 +00:00
David Conrad
7332adddae Write the display size elements
Originally committed as revision 10342 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:24:15 +00:00
David Conrad
d1a8d959fd Revert writing the file creation date
Originally committed as revision 10341 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:24:12 +00:00
David Conrad
409533622e Codec Private should be correct for all but Real codecs now
Originally committed as revision 10340 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:24:10 +00:00
David Conrad
8a39497c13 Write FLAC codec private correctly
Originally committed as revision 10339 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:24:08 +00:00
David Conrad
86be66378b Move writing Xiph-style sizes to its own function
Originally committed as revision 10338 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:24:06 +00:00
David Conrad
4b8f58eea5 Write segment UID
Originally committed as revision 10337 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:24:03 +00:00
David Conrad
80380a0f71 Write the creation time
Originally committed as revision 10336 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:24:01 +00:00
David Conrad
5fd35c6e00 Cosmetics
Originally committed as revision 10335 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:23:59 +00:00
David Conrad
440e090121 Using LIBAVFORMAT_IDENT for both muxing and writing app is good enough
Originally committed as revision 10334 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:23:57 +00:00
David Conrad
dcbfe3f099 Floats aren't used enough to justify writing any with single precision
Originally committed as revision 10333 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:23:55 +00:00
David Conrad
9245c5ca08 Simplify
Originally committed as revision 10332 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:23:53 +00:00
David Conrad
56e4540d3a Indentation
Originally committed as revision 10331 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:23:52 +00:00
David Conrad
663a5d9d2d Write subtitle tracks
Originally committed as revision 10330 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:23:49 +00:00
David Conrad
95527e0669 Move writing a block to its own function
Originally committed as revision 10329 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:23:47 +00:00
David Conrad
8bea4aee4f Only write extradata if it exists
Originally committed as revision 10328 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:23:46 +00:00
David Conrad
07918a227a Determine the output sample rate for SBR AAC and write it
Originally committed as revision 10327 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:23:43 +00:00
David Conrad
6b9a10fbd3 Simplify
Originally committed as revision 10326 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:23:41 +00:00
David Conrad
f9c8d57b79 Keyframe is the first bit not last
Originally committed as revision 10325 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:23:39 +00:00
David Conrad
357eba6f0b Simplify
Originally committed as revision 10324 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:23:38 +00:00
David Conrad
d22f88cb19 Use av_get_bits_per_sample
Originally committed as revision 10323 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:23:34 +00:00
David Conrad
44008871ef Write bit depth for PCM audio
Originally committed as revision 10322 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:23:31 +00:00
David Conrad
1a302a5c2a Write wav header if there is no native audio codec ID
Originally committed as revision 10321 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:23:29 +00:00
David Conrad
6364d534ea Write the cues element
Originally committed as revision 10320 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:23:27 +00:00
David Conrad
1b66d31467 Doxygenize comments
Originally committed as revision 10319 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:23:26 +00:00
David Conrad
4d1fd70cac Calculate the size of a SimpleBlock before writing it so that bytes aren't wasted in writing the size
Originally committed as revision 10318 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:23:23 +00:00
David Conrad
7973dd0bf1 Indentation
Originally committed as revision 10317 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:23:21 +00:00
David Conrad
967d815ae5 Write the Seek Head element
Originally committed as revision 10316 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:23:19 +00:00
David Conrad
801edb42d1 Make sure to return a value in functions that return a value
Originally committed as revision 10315 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:23:17 +00:00
David Conrad
5034ab9024 Move writing the tracks element to its own function
Originally committed as revision 10314 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:23:15 +00:00
David Conrad
56d55a3bcf Move Xiph's CodecPrivate writing code to its own function
Originally committed as revision 10313 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:23:13 +00:00
David Conrad
02f487fc77 Write the duration of the file
Originally committed as revision 10312 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:23:11 +00:00
David Conrad
f57b85a569 put_ebml_void()
Originally committed as revision 10311 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:23:09 +00:00
David Conrad
ab41602755 Remove unused prototype
Originally committed as revision 10310 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:23:07 +00:00
David Conrad
ffb880c278 Write unknown size if the size given is too large for EBML (greater than 2^56-1)
Originally committed as revision 10309 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:23:06 +00:00
David Conrad
815eb6a2fe Track number and UID only have to be nonzero
Originally committed as revision 10308 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:23:03 +00:00