Statistics
| Branch: | Revision:

ffmpeg / libavformat / matroskadec.c @ 470bce2b

History | View | Annotate | Download (62.7 KB)

# Date Author Comment
1ca610c0 12/19/2008 01:00 AM Alexander Strange

Allocate and clear FF_INPUT_BUFFER_PADDING_SIZE bytes at the end of mkv
extradata.

Fixes valgrind invalid read warnings during H.264 extradata parsing.

Originally committed as revision 16229 to svn://svn.ffmpeg.org/ffmpeg/trunk

8f569ed0 11/15/2008 03:34 PM Aurelien Jacobs

matroskadec: fix index timestamps for some broken files
fix issue697

Originally committed as revision 15829 to svn://svn.ffmpeg.org/ffmpeg/trunk

37d3e066 10/21/2008 09:40 PM Aurelien Jacobs

uses FF_ARRAY_ELEMS() where appropriate

Originally committed as revision 15662 to svn://svn.ffmpeg.org/ffmpeg/trunk

bc5c918e 10/03/2008 10:16 AM Diego Biurrun

Remove offset_t typedef and use int64_t directly instead.
The name offset_t is easily confused with the standard off_t type and
*_t is POSIX reserved namespace if any POSIX header is included.

Originally committed as revision 15533 to svn://svn.ffmpeg.org/ffmpeg/trunk

c58e8bd3 10/02/2008 09:15 PM Aurelien Jacobs

matroskadec: cosmetics: indentation

Originally committed as revision 15529 to svn://svn.ffmpeg.org/ffmpeg/trunk

21a115d1 10/02/2008 09:14 PM Aurelien Jacobs

matroskadec: don't merge packets which have no timestamp

Originally committed as revision 15528 to svn://svn.ffmpeg.org/ffmpeg/trunk

d5e34dcb 09/28/2008 11:06 PM Aurelien Jacobs

matroskadec: merge ASS events which share the same pts in the same AVPavket

Originally committed as revision 15455 to svn://svn.ffmpeg.org/ffmpeg/trunk

3df2be9f 09/28/2008 11:01 PM Aurelien Jacobs

matroskadec: ass events lines must end with a DOS style EOL

Originally committed as revision 15454 to svn://svn.ffmpeg.org/ffmpeg/trunk

1bb4a1a1 09/28/2008 10:58 PM Aurelien Jacobs

matroskadec: set duration only for CODEC_ID_TEXT subtitles

Originally committed as revision 15453 to svn://svn.ffmpeg.org/ffmpeg/trunk

e7d4b743 09/28/2008 10:55 PM Aurelien Jacobs

matroskadec: pass duration as parameter of matroska_fix_ass_packet()

Originally committed as revision 15452 to svn://svn.ffmpeg.org/ffmpeg/trunk

a8fd7e76 09/12/2008 12:06 AM Aurelien Jacobs

matroskadec: simplify, first_timecode is already in the index
no need to duplicate it

Originally committed as revision 15302 to svn://svn.ffmpeg.org/ffmpeg/trunk

5358a81f 09/11/2008 10:42 PM Aurelien Jacobs

matroskadec: prevent seeking before the first keyframe of the reference stream

Originally committed as revision 15301 to svn://svn.ffmpeg.org/ffmpeg/trunk

c1658257 09/09/2008 12:10 PM Aurelien Jacobs

matroskadec: demux relevant subtitle packets after a seek
only works for subtitle tracks which were properly indexed up to the seek point

Originally committed as revision 15284 to svn://svn.ffmpeg.org/ffmpeg/trunk

82360e67 09/09/2008 12:07 PM Aurelien Jacobs

matroskadec: ensure that overlapping subtitles are not added to the index

Originally committed as revision 15283 to svn://svn.ffmpeg.org/ffmpeg/trunk

20f74665 09/09/2008 12:01 PM Aurelien Jacobs

matroskadec: after seeking, skip up to the desired timestamp instead of
the desired stream

Originally committed as revision 15282 to svn://svn.ffmpeg.org/ffmpeg/trunk

f14a201b 09/09/2008 11:54 AM Aurelien Jacobs

matroskadec: move timecode calculation a little earlier
so as to be able to use it in other part of the code

Originally committed as revision 15281 to svn://svn.ffmpeg.org/ffmpeg/trunk

3fc9d7ce 09/09/2008 11:23 AM Aurelien Jacobs

matroskadec: sanitize track time_scale before using it
fix issue628

Originally committed as revision 15280 to svn://svn.ffmpeg.org/ffmpeg/trunk

a3467f86 09/06/2008 11:44 PM Aurelien Jacobs

matroskadec: remove now useless vstream and is_video_key_frame

Originally committed as revision 15231 to svn://svn.ffmpeg.org/ffmpeg/trunk

dbfb0e5f 09/06/2008 11:43 PM Aurelien Jacobs

matroskadec: remove useless braces

Originally committed as revision 15230 to svn://svn.ffmpeg.org/ffmpeg/trunk

24c3da16 09/06/2008 11:39 PM Aurelien Jacobs

matroskadec: ensure that the timecode added to the index are is the one
of the actual keyframe block, and not the one of the start of the cluster
containing this block.

Originally committed as revision 15229 to svn://svn.ffmpeg.org/ffmpeg/trunk

3eb9bfbb 09/04/2008 11:26 PM Aurelien Jacobs

matroskadec: fix ASS subtitle track packets before emitting them
Matroska does some butchering when storing the ASS lines. The start and end
time are removed (because they are duplicated in the container).
The matroska_fix_ass_packet() function simply restore those start and end...

62c24705 09/04/2008 11:08 PM Aurelien Jacobs

matroska: subtitle display duration must be stored in pkt->convergence_duration

Originally committed as revision 15206 to svn://svn.ffmpeg.org/ffmpeg/trunk

0dbddda3 08/27/2008 07:58 PM Aurelien Jacobs

matroskadec: cosmetics: indentation

Originally committed as revision 14995 to svn://svn.ffmpeg.org/ffmpeg/trunk

6bef5f9b 08/27/2008 07:57 PM Aurelien Jacobs

matroskadec: seek to the last position known in the index before resorting to
full cluster parsing when seeking after the end of index

Originally committed as revision 14994 to svn://svn.ffmpeg.org/ffmpeg/trunk

8e44312d 08/26/2008 08:32 PM Aurelien Jacobs

matroskadec: index timestamps are supposed to be in the timebase of the stream

Originally committed as revision 14984 to svn://svn.ffmpeg.org/ffmpeg/trunk

244ee48a 08/25/2008 12:17 AM Aurelien Jacobs

matroskadec: unset matroska->done when seeking
just in case someone try to seek back after reaching the end of file

Originally committed as revision 14960 to svn://svn.ffmpeg.org/ffmpeg/trunk

0f646a22 08/25/2008 12:15 AM Aurelien Jacobs

matroskadec: full seeking support in index-less files
when trying to seek past the last index entry, just parse more clusters to add them to the index, until an index entry match the desired position

Originally committed as revision 14959 to svn://svn.ffmpeg.org/ffmpeg/trunk

8bc98ba9 08/25/2008 12:09 AM Aurelien Jacobs

matroskadec: on the fly index construction for index-less files
each cluster that is read and that contains a video key frame is added
to the index

Originally committed as revision 14957 to svn://svn.ffmpeg.org/ffmpeg/trunk

dfbbbdc0 08/24/2008 11:57 PM Aurelien Jacobs

matroskadec: don't try to seek to negative timestamp
matroska timestamps are unsigned

Originally committed as revision 14956 to svn://svn.ffmpeg.org/ffmpeg/trunk

653fb2f8 08/24/2008 11:54 PM Aurelien Jacobs

matroskadec: move setting of matroska->done inside matroska_parse_cluster()

Originally committed as revision 14955 to svn://svn.ffmpeg.org/ffmpeg/trunk

7b571fd7 08/24/2008 05:19 PM Reimar Döffinger

Mark "matroska" probe data string constant.

Originally committed as revision 14949 to svn://svn.ffmpeg.org/ffmpeg/trunk

ba18b99f 08/24/2008 01:12 PM Aurelien Jacobs

matroskadec: make aac_profiles array const

Originally committed as revision 14943 to svn://svn.ffmpeg.org/ffmpeg/trunk

59729451 08/23/2008 11:43 PM Aurelien Jacobs

convert every muxer/demuxer to write/read sample_aspect_ratio from/to
the corresponding AVStream instead of AVCodecContext

Originally committed as revision 14933 to svn://svn.ffmpeg.org/ffmpeg/trunk

28f27e0c 08/20/2008 11:08 PM Aurelien Jacobs

matroskadec: fail cleanly when the required compression lib is not compiled in

Originally committed as revision 14870 to svn://svn.ffmpeg.org/ffmpeg/trunk

dc3e0211 08/20/2008 10:30 PM Aurelien Jacobs

matroskadec: stop parsing when skipping en element crossing over the end of file

Originally committed as revision 14869 to svn://svn.ffmpeg.org/ffmpeg/trunk

eb9cf50a 08/20/2008 12:49 AM Aurelien Jacobs

matroska: add support for most variants of PCM

Originally committed as revision 14862 to svn://svn.ffmpeg.org/ffmpeg/trunk

b49d17b7 08/20/2008 12:44 AM Aurelien Jacobs

matroskadec: handle EBML_ID_VOID and EBML_ID_CRC32 in a generic way

Originally committed as revision 14861 to svn://svn.ffmpeg.org/ffmpeg/trunk

5df3cc6f 08/13/2008 09:15 PM Aurelien Jacobs

matroskadec: list some more ebml IDs found in the wild and that we ignore
This avoid printing some warnings about unknow IDs while we in fact know
the IDs but just want to knowingly ignore them.

Originally committed as revision 14738 to svn://svn.ffmpeg.org/ffmpeg/trunk

131f1cb2 08/13/2008 09:36 AM Aurelien Jacobs

matroskadec: parse available blocks even when cluster parsing failed
This way, we still read the few complete blocks out of a truncated
cluster at the end of a truncated file.

Originally committed as revision 14723 to svn://svn.ffmpeg.org/ffmpeg/trunk

44015c56 08/08/2008 11:50 PM Aurelien Jacobs

matroskadec: add basic tags support (metadata)

Originally committed as revision 14672 to svn://svn.ffmpeg.org/ffmpeg/trunk

00a3431c 08/06/2008 12:21 AM Aurelien Jacobs

matroskadec: use av_freep(&x) instead of av_free(x);x=NULL

Originally committed as revision 14633 to svn://svn.ffmpeg.org/ffmpeg/trunk

b8702539 08/06/2008 12:17 AM Anton Khirnov

matroskadec: replace matroska_queue_packet with a single call to dynarray_add
patch by Anton Khirnov wyskas at gmail dot com

Originally committed as revision 14632 to svn://svn.ffmpeg.org/ffmpeg/trunk

5968d2dd 08/05/2008 08:28 AM Diego Biurrun

misc spelling/grammar fixes

Originally committed as revision 14616 to svn://svn.ffmpeg.org/ffmpeg/trunk

cc70d14b 08/05/2008 12:43 AM Aurelien Jacobs

matroskadec: remove useless num_streams

Originally committed as revision 14611 to svn://svn.ffmpeg.org/ffmpeg/trunk

88cca989 08/05/2008 12:42 AM Aurelien Jacobs

matroskadec: expand useless ebml_read_element_id() wrapper

Originally committed as revision 14610 to svn://svn.ffmpeg.org/ffmpeg/trunk

33ac07ea 08/05/2008 12:42 AM Aurelien Jacobs

matroskadec: simplify matroska_ebmlnum_sint()

Originally committed as revision 14609 to svn://svn.ffmpeg.org/ffmpeg/trunk

c1e01133 08/05/2008 12:42 AM Aurelien Jacobs

matroskadec: implement matroska_ebmlnum_uint() using ebml_read_num()

Originally committed as revision 14608 to svn://svn.ffmpeg.org/ffmpeg/trunk

cc8be506 08/05/2008 12:42 AM Aurelien Jacobs

matroska: expand useless define for MS compat codec id strings

Originally committed as revision 14607 to svn://svn.ffmpeg.org/ffmpeg/trunk

ff33c5c5 08/05/2008 12:42 AM Aurelien Jacobs

matroskadec: update copyright year and related comments

Originally committed as revision 14605 to svn://svn.ffmpeg.org/ffmpeg/trunk

737c40da 08/05/2008 12:42 AM Aurelien Jacobs

matroskadec: reorder some functions in a more logical order

Originally committed as revision 14604 to svn://svn.ffmpeg.org/ffmpeg/trunk

1b6d23bb 08/05/2008 12:42 AM Aurelien Jacobs

matroskadec: remove now useless wrapper ebml_read_element_length()

Originally committed as revision 14603 to svn://svn.ffmpeg.org/ffmpeg/trunk

66cfc385 08/05/2008 12:42 AM Aurelien Jacobs

matroskadec: remove now useless wrapper ebml_read_seek()

Originally committed as revision 14602 to svn://svn.ffmpeg.org/ffmpeg/trunk

5c5373ce 08/05/2008 12:42 AM Aurelien Jacobs

matroskadec: remove now useless peek_id

Originally committed as revision 14601 to svn://svn.ffmpeg.org/ffmpeg/trunk

38797638 08/05/2008 12:42 AM Aurelien Jacobs

matroskadec: don't try to re-read already parsed ID in matroska_parse_cluster()

Originally committed as revision 14600 to svn://svn.ffmpeg.org/ffmpeg/trunk

6314cca0 08/05/2008 12:42 AM Aurelien Jacobs

matroskadec: remove now unused parameter 'once' from ebml_parse_nest()

Originally committed as revision 14599 to svn://svn.ffmpeg.org/ffmpeg/trunk

c4d3d9ba 08/05/2008 12:42 AM Aurelien Jacobs

matroskadec: directly use ebml_parse() or ebml_parse_id() where it's enough

Originally committed as revision 14598 to svn://svn.ffmpeg.org/ffmpeg/trunk

66a37e06 08/05/2008 12:42 AM Aurelien Jacobs

matroskadec: new ebml_parse() function, centralize ebml_read_element_id() calls

Originally committed as revision 14597 to svn://svn.ffmpeg.org/ffmpeg/trunk

9bcb92ca 08/05/2008 12:42 AM Aurelien Jacobs

matroskadec: rename ebml_parse() to ebml_parse_nest()

Originally committed as revision 14596 to svn://svn.ffmpeg.org/ffmpeg/trunk

c005b3f2 08/05/2008 12:42 AM Aurelien Jacobs

matroskadec: don't care about the number of bytes read by ebml_read_element_id()

Originally committed as revision 14595 to svn://svn.ffmpeg.org/ffmpeg/trunk

592110c2 08/05/2008 12:42 AM Aurelien Jacobs

matroskadec: simplify check for hierarchy level

Originally committed as revision 14594 to svn://svn.ffmpeg.org/ffmpeg/trunk

f7b9687c 08/05/2008 12:42 AM Aurelien Jacobs

matroskadec: cosmetics: consistent style for function declarations

Originally committed as revision 14593 to svn://svn.ffmpeg.org/ffmpeg/trunk

104be240 08/05/2008 12:42 AM Aurelien Jacobs

matroskadec: Use string instead of char table as probe data comparison source.

Originally committed as revision 14592 to svn://svn.ffmpeg.org/ffmpeg/trunk

eb05cacc 08/05/2008 12:41 AM Aurelien Jacobs

matroskadec: use an EbmlBin as parameter to ebml_read_binary()

Originally committed as revision 14591 to svn://svn.ffmpeg.org/ffmpeg/trunk

c6cd2b3d 08/05/2008 12:41 AM Aurelien Jacobs

matroskadec: extract common code out of ebml_read_*()

Originally committed as revision 14590 to svn://svn.ffmpeg.org/ffmpeg/trunk

ba5a1f99 08/05/2008 12:41 AM Aurelien Jacobs

matroskadec: simplify/cleanup error logging in ebml_read_*()

Originally committed as revision 14589 to svn://svn.ffmpeg.org/ffmpeg/trunk

54d8869d 08/05/2008 12:41 AM Aurelien Jacobs

matroskadec: remove now useless expected_id parameter from ebml_parse()

Originally committed as revision 14588 to svn://svn.ffmpeg.org/ffmpeg/trunk

4dc9e183 08/05/2008 12:41 AM Aurelien Jacobs

matroskadec: expand useless ebml_peek_id() wrapper

Originally committed as revision 14587 to svn://svn.ffmpeg.org/ffmpeg/trunk

3856e7c4 08/05/2008 12:41 AM Aurelien Jacobs

matroskadec: remove unused levelup parameter from ebml_read_element_id()

Originally committed as revision 14586 to svn://svn.ffmpeg.org/ffmpeg/trunk

44cea765 08/05/2008 12:41 AM Aurelien Jacobs

matroskadec: extract read_level_up out of ebml_read_element_id

Originally committed as revision 14585 to svn://svn.ffmpeg.org/ffmpeg/trunk

dfde36a3 08/05/2008 12:41 AM Aurelien Jacobs

matroskadec: remove useless levelup check

Originally committed as revision 14584 to svn://svn.ffmpeg.org/ffmpeg/trunk

051ef5ce 08/05/2008 12:41 AM Aurelien Jacobs

matroskadec: remove useless check for cluster presence

Originally committed as revision 14583 to svn://svn.ffmpeg.org/ffmpeg/trunk

28ba69e0 08/05/2008 12:41 AM Aurelien Jacobs

matroskadec: cosmetics: placement of 'else if'

Originally committed as revision 14582 to svn://svn.ffmpeg.org/ffmpeg/trunk

7eb9b068 08/05/2008 12:41 AM Aurelien Jacobs

matroskadec: remove some useless empty lines

Originally committed as revision 14581 to svn://svn.ffmpeg.org/ffmpeg/trunk

5efc8ec8 08/05/2008 12:41 AM Aurelien Jacobs

matroskadec: remove some useless or out of date comments

Originally committed as revision 14580 to svn://svn.ffmpeg.org/ffmpeg/trunk

8f35a2c0 08/05/2008 12:41 AM Aurelien Jacobs

matroskadec: cosmetics

Originally committed as revision 14579 to svn://svn.ffmpeg.org/ffmpeg/trunk

c171af9b 08/05/2008 12:41 AM Aurelien Jacobs

matroskadec: remove unused struct name

Originally committed as revision 14578 to svn://svn.ffmpeg.org/ffmpeg/trunk

1e49ee42 08/05/2008 12:41 AM Aurelien Jacobs

matroskadec: remove now unused context fields

Originally committed as revision 14577 to svn://svn.ffmpeg.org/ffmpeg/trunk

70109c0d 08/05/2008 12:41 AM Aurelien Jacobs

matroskadec: remove useless initialization

Originally committed as revision 14576 to svn://svn.ffmpeg.org/ffmpeg/trunk

16f97ab0 08/05/2008 12:41 AM Aurelien Jacobs

matroskadec: cosmetics: remove useless braces

Originally committed as revision 14575 to svn://svn.ffmpeg.org/ffmpeg/trunk

3143f133 08/05/2008 12:41 AM Aurelien Jacobs

matroskadec: remove some unused ebml funcs

Originally committed as revision 14574 to svn://svn.ffmpeg.org/ffmpeg/trunk

209472b4 08/05/2008 12:41 AM Aurelien Jacobs

matroskadec: use generic parser to parse clusters

Originally committed as revision 14573 to svn://svn.ffmpeg.org/ffmpeg/trunk

f06a4886 08/05/2008 12:41 AM Aurelien Jacobs

matroskadec: use generic parser inside matroska_execute_seekhead()

Originally committed as revision 14572 to svn://svn.ffmpeg.org/ffmpeg/trunk

ce6f28bd 08/05/2008 12:40 AM Aurelien Jacobs

matroskadec: use generic parser to parse matroska from toplevel

Originally committed as revision 14571 to svn://svn.ffmpeg.org/ffmpeg/trunk

9c25bafa 08/05/2008 12:40 AM Aurelien Jacobs

matroskadec: move context settings to matroska_read_header()

Originally committed as revision 14570 to svn://svn.ffmpeg.org/ffmpeg/trunk

d88d806b 08/05/2008 12:40 AM Aurelien Jacobs

matroskadec: cosmetics: indentation of matroska_read_header()

Originally committed as revision 14569 to svn://svn.ffmpeg.org/ffmpeg/trunk

9a9a3b03 08/05/2008 12:40 AM Aurelien Jacobs

matroskadec: move declaration to upper block

Originally committed as revision 14568 to svn://svn.ffmpeg.org/ffmpeg/trunk

a636a56b 08/05/2008 12:40 AM Aurelien Jacobs

matroskadec: invert a test

Originally committed as revision 14567 to svn://svn.ffmpeg.org/ffmpeg/trunk

4348571b 08/05/2008 12:40 AM Aurelien Jacobs

matroskadec: cosmetics: indentation of matroska_execute_seekhead()

Originally committed as revision 14566 to svn://svn.ffmpeg.org/ffmpeg/trunk

82113343 08/05/2008 12:40 AM Aurelien Jacobs

matroskadec: remove useless dummy_level variable

Originally committed as revision 14565 to svn://svn.ffmpeg.org/ffmpeg/trunk

13b350a3 08/05/2008 12:40 AM Aurelien Jacobs

matroskadec: use generic parser to parse seekhead

Originally committed as revision 14564 to svn://svn.ffmpeg.org/ffmpeg/trunk

8ecdab8f 08/05/2008 12:40 AM Aurelien Jacobs

matroskadec: declare var where it's used

Originally committed as revision 14563 to svn://svn.ffmpeg.org/ffmpeg/trunk

2cbc8811 08/05/2008 12:40 AM Aurelien Jacobs

matroskadec: use generic parser to parse tracks

Originally committed as revision 14562 to svn://svn.ffmpeg.org/ffmpeg/trunk

29708581 08/05/2008 12:40 AM Aurelien Jacobs

matroskadec: use generic parser to parse info

Originally committed as revision 14561 to svn://svn.ffmpeg.org/ffmpeg/trunk

b414cb89 08/05/2008 12:40 AM Aurelien Jacobs

matroskadec: use generic parser to parse attachments

Originally committed as revision 14560 to svn://svn.ffmpeg.org/ffmpeg/trunk

6bbd7c7b 08/05/2008 12:40 AM Aurelien Jacobs

matroskadec: use generic parser to parse chapters

Originally committed as revision 14559 to svn://svn.ffmpeg.org/ffmpeg/trunk

434d496a 08/05/2008 12:40 AM Aurelien Jacobs

matroskadec: use generic parser to parse tags

Originally committed as revision 14558 to svn://svn.ffmpeg.org/ffmpeg/trunk

e5929fdf 08/05/2008 12:40 AM Aurelien Jacobs

matroskadec: use generic parser to parse index

Originally committed as revision 14557 to svn://svn.ffmpeg.org/ffmpeg/trunk

009ecd50 08/05/2008 12:40 AM Aurelien Jacobs

matroskadec: return pointer instead of index in matroska_find_track_by_num()

Originally committed as revision 14556 to svn://svn.ffmpeg.org/ffmpeg/trunk

28f450a9 08/05/2008 12:40 AM Aurelien Jacobs

matroskadec: create new AVStream earlier

Originally committed as revision 14555 to svn://svn.ffmpeg.org/ffmpeg/trunk

fc4d335f 08/05/2008 12:40 AM Aurelien Jacobs

matroskadec: store an AVStream pointer instead of a stream index

Originally committed as revision 14554 to svn://svn.ffmpeg.org/ffmpeg/trunk