Ronald S. Bultje
e87b7d72c6
Use inverse error branches, i.e. instead of if(something){success} else {error},
...
use if(!something) {return error;} success;, which needs less indenting.
Originally committed as revision 24516 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Ronald S. Bultje
540ab68c64
Use av_log(.., AV_LOG_ERROR) instead of dprintf() for logging errors. This
...
should help in making mmst a little more userfriendly, or at least debuggable.
Also use helpful error return values instead of -1.
Originally committed as revision 24515 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Aurelien Jacobs
2701fd40f9
matroskaenc: add support for muxing SRT tracks
...
Originally committed as revision 24503 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Aurelien Jacobs
7b53f463b4
add mime-type for ASS muxer
...
Originally committed as revision 24502 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Martin Storsjö
752ff3ffa7
Include the correct header that actually is used, use quotes instead of angle brackets
...
Originally committed as revision 24501 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Reimar Döffinger
853a0fccce
Cosmetics: fix indentation and remove a useless else.
...
Originally committed as revision 24495 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Reimar Döffinger
3aa13da970
Simplify get_byte and url_fgetc.
...
Originally committed as revision 24494 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Reimar Döffinger
e36a39066c
Move ffm_close function up to avoid a forward declaration.
...
Originally committed as revision 24491 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Reimar Döffinger
527b46ba26
ffmdec: Do not manually free streams on read_header error, this is always
...
handled by upper layers.
Fixes double-frees (issue 2003).
Instead call ffm_close to ensure rc_eqs are freed also in the error case.
Originally committed as revision 24490 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Aurelien Jacobs
ba2c508d0c
add SubRip muxer and demuxer
...
Originally committed as revision 24488 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Reimar Döffinger
6f2c523c85
Fix a "function declaration isn't a prototype" warning.
...
Originally committed as revision 24480 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Martin Storsjö
496c645d3b
Never shrink the ByteIOContext buffer in ff_rewind_with_probe_data
...
If there is little unread data in the ByteIOContext buffer, this may lead
to reducing the size of the ByteIOContext buffer to little more the probe
data size. This can lead to suboptimal aviobuf behaviour, e.g. making some
demuxers fail to do short seeks backwards (if the input isn't seekable).
Originally committed as revision 24478 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Martin Storsjö
8dd25c52cb
mpegts: Warn if unable to seek back
...
Originally committed as revision 24477 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Baptiste Coudurier
ef011e6d58
In mpegts muxer, fix rbsp trailing bits in AUD nal, fixes issue #2122
...
Originally committed as revision 24449 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Aurelien Jacobs
8a810ccbba
use return value of ff_get_line()
...
Originally committed as revision 24402 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Aurelien Jacobs
b0335fd957
document ff_get_line()
...
Originally committed as revision 24401 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Aurelien Jacobs
a43416a540
improve ff_get_line to return line length
...
Originally committed as revision 24400 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Aurelien Jacobs
7c89295145
move ff_get_line to aviobuf.c
...
Originally committed as revision 24399 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Aurelien Jacobs
80769fb73f
rename get_line to ff_get_line
...
Originally committed as revision 24398 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Axel Holzinger
354b757300
Zero-initialize structs/arrays with {0} instead of {}, which isn't proper C99
...
Patch by Axel Holzinger, aholzinger at gmx dot de
Originally committed as revision 24391 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Martin Storsjö
4f5340a0b1
Reindent, rewrap long comment lines to keep line length below 80 chars
...
Originally committed as revision 24390 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Martin Storsjö
bcc4cb4681
rtpdec_asf: Handle RTSP-MS packet splitting
...
Originally committed as revision 24389 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Thierry Foucu
591db22dff
gxfenc: Fix ES name in the UMF media description, by using strlen instead of sizeof
...
Patch by Thierry Foucu, tfoucu at gmail
Originally committed as revision 24379 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Zhentan Feng
e4a28be67b
Allow the ASF header to be transferred split over multiple packets, as some
...
servers happen to do. For this, we also move several header-size-related
variables to the MMSTContext.
Patch by Zhentan Feng <spyfeng gmail com>.
Originally committed as revision 24363 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Zhentan Feng
d6cc1123e3
Explicitely set the size of the "ff_asf_head1_guid" header chunk, this is
...
part of the spec and causes problems otherwise.
Patch by Zhentan Feng <spyfeng gmail com>.
Originally committed as revision 24362 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Zhentan Feng
cbbb10810c
Align outgoing messages to 8 bytes, this is required to interact with
...
most servers. Also remove a case where we manually aligned to 8 bytes,
since this is now no longer needed.
Patch by Zhentan Feng <spyfeng gmail com>.
Originally committed as revision 24360 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Zhentan Feng
0c717a30e0
Fix a compile warning when compiling with DEBUG=1. The warning was:
...
format ‘%d’ expects type ‘int’, but argument 3 has type ‘uint64_t’
Patch by Zhentan Feng <spyfeng gmail com>.
Originally committed as revision 24359 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Zhentan Feng
9078eba062
Check the status code of each server responses, and fail if it indicates
...
a problem.
Patch by Zhentan Feng <spyfeng gmail com>.
Originally committed as revision 24358 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Zhentan Feng
414df121e0
Send a time test to the server, as the spec recommends.
...
Patch by Zhentan Feng <spyfeng gmail com>.
Originally committed as revision 24357 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Rafaël Carré
e8723e242d
Lego Mindstorms RSO muxer and demuxer.
...
Patch by Rafaël Carré, rafael d carre a gmail
Originally committed as revision 24355 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Martin Storsjö
d970ec7554
asfdec: 10l, fix the minimum asf video stream header size
...
This fixes the regression test breakage.
Originally committed as revision 24354 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Martin Storsjö
fed7959271
asfdec: Don't read the video stream header if there isn't enough data
...
Originally committed as revision 24352 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Martin Storsjö
a3ab7c3249
asfdec: Handle asf_jfif_media
...
Originally committed as revision 24351 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Martin Storsjö
7428c8f599
asf: Add asf_jfif_media guid
...
Originally committed as revision 24350 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Martin Storsjö
aff4137d5f
Remove an assert that was no longer correct nor relevant
...
Originally committed as revision 24344 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Carl Eugen Hoyos
2d91366cc2
Make MP43 the default fourcc for msmpeg4v3:
...
DIV3 is not supported on default XP and Vista installations (MP43 is).
Originally committed as revision 24343 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Martin Storsjö
8b6e0aec9f
movenc: Free the buffer returned by url_close_dyn_buffer, regardless of the size
...
This fixes a leak introduced in rev 23942, since we write padding to the
buffer unconditionally.
Originally committed as revision 24342 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Josh Allmann
7d894aeb60
rtpdec_xiph: Avoid extra memcpy in Xiph RTP depacketizer
...
Patch by Josh Allmann, joshua dot allmann at gmail
Originally committed as revision 24334 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Aurelien Jacobs
3673f4ab08
fix av_seek_frame_binary() documentation
...
read_timestamp() is part of AVInputFormat, not AVCodec
Originally committed as revision 24327 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Peter Ross
07e6384dd8
Add doxygen @file comment block
...
Originally committed as revision 24326 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Martin Storsjö
a16ebd40d8
rtpdec_asf: Include lavu headers using quotes instead of angle brackets
...
Originally committed as revision 24325 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Martin Storsjö
76d908b3fe
Include lavu headers using quotes instead of angle brackets
...
Originally committed as revision 24315 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
a1db009e6c
Add MD5 protocol
...
This is a write-only protocol which computes the md5sum of data written,
and on close writes this to the designated output or stdout if none
is specified. It can be used to test muxers without writing an actual
file.
Originally committed as revision 24309 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
2bab5d3e73
Allow all valid (and only valid) characters in URL scheme for url_open()
...
The URL specification allows letters, numbers, plus, hyphen, and period
in the scheme part. The isalpha() test would allow additional characters
depending on locale settings while rejecting numbers and punctuation.
Originally committed as revision 24306 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Peter Ross
4863bf0d16
Remove trailing linefeed
...
Originally committed as revision 24303 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Peter Ross
1917a51809
Use correct doxygen syntax
...
Originally committed as revision 24302 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Peter Ross
5a71709467
Tele-typewriter demuxer
...
Originally committed as revision 24301 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Peter Ross
0459bf2d02
Add ff_sauce_read()
...
Originally committed as revision 24300 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Jai Menon
bbfb2c8077
avidec : Free packet if dv_produce_packet fails.
...
Originally committed as revision 24281 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Martin Storsjö
7939d0edce
aviobuf: Do short seeks forward by reading and skipping data instead of a proper seek
...
This improves performance on e.g. seekable http.
Originally committed as revision 24280 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago