Derek Buitenhuis
be5fde92ff
libnut: Pass stream to ff_parse_specific_params
...
This function bo longer takes an AVCodecContext.
Fixes ticket #5430 .
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
9 years ago
wm4
656b07b5a9
lavf: use new decode API
...
From Libav commit 8bc4accc37
, with
additional code for decoding subtitles (not present in Libav).
Signed-off-by: Anton Khirnov <anton@khirnov.net>
9 years ago
wm4
7fc329e2dd
lavc: introduce a new decoding/encoding API with decoupled input/output
...
Until now, the decoding API was restricted to outputting 0 or 1 frames
per input packet. It also enforces a somewhat rigid dataflow in general.
This new API seeks to relax these restrictions by decoupling input and
output. Instead of doing a single call on each decode step, which may
consume the packet and may produce output, the new API requires the user
to send input first, and then ask for output.
For now, there are no codecs supporting this API. The API can work with
codecs using the old API, and most code added here is to make them
interoperate. The reverse is not possible, although for audio it might.
From Libav commit 05f66706d1
.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
9 years ago
Michael Niedermayer
a0b92788a8
avformat/utils: Remove use of caps_internal as it is not public API
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Martin Storsjö
75b90ef722
libavformat: Update the comment about AVOutputFormat flags
...
Add a flag which applies here, which had been missed.
Signed-off-by: Martin Storsjö <martin@martin.st>
9 years ago
Martin Storsjö
74383def8f
movenc: Handle pts == NOPTS when autoflushing
...
This muxer generally handles pts == NOPTS by using dts instead;
do this for consistency here as well.
Signed-off-by: Martin Storsjö <martin@martin.st>
9 years ago
Martin Storsjö
0abb07bad7
movenc: Update a comment to reflect how the code actually behaves
...
This codepath isn't quite as bad as it used to sound, if fragments
are cut automatically at video packets.
Signed-off-by: Martin Storsjö <martin@martin.st>
9 years ago
Luca Barbato
79fdbfdb3e
img2enc: Refactor the atomic renaming code
...
And use it for the separate-plane side-feature as well.
Bug-Id: 935
9 years ago
Anton Khirnov
06edef3d5e
Generate the lists of enabled protocols/bsfs from configure.
9 years ago
James Almer
b63ba3a517
avformat/hashenc: add missing avio_flush to hash_write_trailer
...
It was accidentally deleted in the previous hashenc commit
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
Michael Niedermayer
c4fad02779
avformat/matroskaenc: Undo bits_per_coded_sample change as bits_per_raw_sample is available again
...
Reminded-by: James Almer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Carl Eugen Hoyos
a676c29af5
lavf/bink: Cosmetics: Reindent after last commit.
9 years ago
Carl Eugen Hoyos
6d39132fd4
lavf/bink: Support Monkey Island 4 (SMUSH) files.
...
Fixes ticket #5410 .
9 years ago
James Almer
bb505cd505
avformat/hashenc: simplify hash_write_trailer
...
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
James Almer
c8ed93efcf
avformat/yop: alloc codecpar extradata only once
...
Fixes memleak
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
Paul B Mahol
323b8c95e4
avformat: add AVFormatContext to ff_get_extradata()
...
Needed for av_log() inside that function.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
James Almer
0efafc5849
avformat/framehash: enable new output
...
Also, make every addition except for sidedata part of version 1 instead of the
new version 2.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
James Almer
868bce48f6
avformat/framehash: add sidedata checksum
...
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
Jan Sebechlebsky
2ea5ab6fc6
avformat/tee: Refactor close_slaves function in tee muxer
...
Closing single slave operation is pulled out into separate
function close_slave(TeeSlave*).
Both close_slave and close_slaves function are moved before
open_slave function.
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Jan Sebechlebsky <sebechlebskyjan@gmail.com>
Signed-off-by: Marton Balint <cus@passwd.hu>
9 years ago
Bryan Huh
949444348b
avformat/dump: Fix sign bug in reported "start" time
...
Previously, the bug was that if -1 < start_time < 0, the reported
"start" time would lose the negative-sign.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
James Almer
5557e881c9
avformat/framehash: add extradata checksum
...
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
James Almer
33aa8a6221
avformat/framecrc: enable new output
...
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
Derek Buitenhuis
2691a8399f
Revert "Merge commit '1ceb07eb313c2d51383408025e57a2fe50ccd164'"
...
Broke a lot of stuff and didn't fix anything.
This reverts commit 3c461eecd4
, reversing
changes made to 884dd175f0
.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
9 years ago
James Almer
3674a53d17
avformat/uncodedframecrc: fix incompatible pointer type warning
...
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
Michael Niedermayer
e3111b1ff8
avformat/framehash: Add more information to the output
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
Moritz Barsnick
f4a0236cbd
avformat: add hash and framehash muxers
...
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Moritz Barsnick <barsnick@gmx.net>
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
Michael Niedermayer
196cfc278d
avformat/utils: use av_codec_g/set_lowres()
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Timo Rothenpieler
901b0f1a21
avformat/concatdec: Use correct stream count on close
9 years ago
Michael Niedermayer
15fa01786c
avformat/hdsenc: Pass flags to child context
...
This is needed as the bitexact flag is not in the codecpar context, and thus not copied
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
0c9ad94e97
avformat/dashenc: Pass flags to child context
...
This is needed as the bitexact flag is not in the codecpar context, and thus not copied
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
4104f18358
avformat/segment: Pass flags to child context
...
This is needed as the bitexact flag is not in the codecpar context, and thus not copied
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Carl Eugen Hoyos
7e1e25c2dc
lavf/avio: Remove linebreak from https warning.
9 years ago
Michael Niedermayer
38a6242b27
avformat/mpegts: Remove unused argument from analyze()
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
ee7a642b0e
avformat/mpegts: Check adaption field control in analyze() more instead of transport_error_indicator
...
transport_error_indicator is not required to be 0
Fixes probing
Fixes Ticket 4862
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Carl Eugen Hoyos
b0c026a27f
lavf/rawenc: Add a raw gsm muxer.
9 years ago
Carl Eugen Hoyos
56cb465b38
lavf/gsmdec: Add raw gsm autodetection.
...
Fixes bug 555.
9 years ago
Paul B Mahol
a4790e1890
avformat/nistshperedec: add support for mu-law as sample-byte-format
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Paul B Mahol
259879d32d
avformat/nistspheredec: fix silly bug
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Paul B Mahol
0c9490609d
avformat: support shorten in nistshpere demuxer
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Diego Biurrun
d12b5b2f13
build: Split test programs off into separate files
...
This avoids spurious library rebuilds when only the test program
code is changed and simplifies the build system.
9 years ago
Diego Biurrun
01621202aa
build: miscellaneous cosmetics
...
Restore alphabetical order in lists, break overly long lines, do some
prettyprinting, add some explanatory section comments, group parts
together that belong together logically.
9 years ago
Paul B Mahol
2d720069a9
avformat: add aix demuxer
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Paul B Mahol
56a3a3f01c
avformat: add musx demuxer
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Luca Barbato
e3453fd444
matroska: Write the field order information
...
And bump the document version to 4.
9 years ago
Paul B Mahol
76466ab214
avformat/brstm: lower magic number, fixes decoding of some files
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Hendrik Leppkes
6518cbc52a
lavc/utils: Introduce ff_bprint_to_codecpar_extradata for avformat
...
It will be used by text subtitle demuxers to construct format instructions
straight into extradata. They all currently a similar function that accepts
an AVCodecContext instead.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
9 years ago
Michael Niedermayer
06c4ed0c0e
avformat/wavdec: fix typo with len
...
Found-by: carl
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
cf4d050b72
avformat/wavdec: Remove direct s->pb->buffer access
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Derek Buitenhuis
fcbdc44f4e
wavdec: Only set the codec ID in read_header
...
WAV is not a NOHEADER format, and thus should not be changing
stream codec IDs and probing in read_packet.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Rodger Combs
4b150fbe1f
lavf/segment: add option to write empty filler segments as needed
9 years ago