1
mirror of https://code.videolan.org/videolan/vlc synced 2024-10-03 01:31:53 +02:00
Commit Graph

159 Commits

Author SHA1 Message Date
Rafaël Carré
079a1818dc codecs & packetizers: fix warnings
use size_t instead of int to represent sizes
    removes unused parameters from:
        block_BytestreamInit()
        mpeg4_audio/LOASSyncInfo()
        cinepak/cinepak_Getv1()
        speex/SendPacket()
        subsass/ParseColor()
        ffmpeg/postprocess/InitPostproc() & PostprocPict()
        dvbsub/YuvaYuvp() & encode_pixel_line_{2,4,8}bp()
        faad/DoReordering()

vlc_block_helper.h:
    use size_t, removes unused parameter from block_BytestreamInit()

struct filter_t:
    removes unused parameters from pf_picture_link() & pf_picture_unlink()
    
cmml: fix a segfault (p_item isn't an input item, despite the name) present for some months, proving that nobody did use that code ?
2008-01-29 13:34:30 +00:00
Rémi Denis-Courmont
99fab9089e Don't include config.h from the headers - refs #297.
Missing some cases that I could not test.
Also ffmpeg/chroma.c is locked, so I can but leave it broken.
Fix is for the remaining modules is obvious and the issue is easy to detect.
2008-01-23 21:50:58 +00:00
Jean-Paul Saman
14764a967d Fix regression introduced in [24381] 2008-01-18 10:12:02 +00:00
Jean-Paul Saman
ca42fbe0b4 Check malloc return values and fix a few compiler warnings. 2008-01-18 08:00:26 +00:00
Rémi Denis-Courmont
4f02842805 Revert the so-called whitelisting commits that are actually blacklisting 2008-01-16 17:51:21 +00:00
Rafaël Carré
806cf51658 input options whitelisting, step 2 (refs #1371) 2008-01-16 17:36:14 +00:00
Sigmund Augdal Helberg
6a8456a649 Fixed a segfault/division by zero caused by delayed headers in LOAS
format audio.
2008-01-12 17:23:47 +00:00
Ilkka Ollakka
2bf327dfbf fix previous commit 2008-01-11 17:48:58 +00:00
Ilkka Ollakka
0669b648a7 revert 24090 and add fix for including sps/pps in every keyframe without
breaking ts/h264 writing, so it waits until sps/pps are received before
handing stuff onward (as it did earlier). thanks to jpsaman for spotting
this.
2008-01-11 17:42:54 +00:00
Ilkka Ollakka
7a7bb889b1 remove b_header in packetizer so sps/pps are send with every keyframe,
shouldn't break anything (tested on mp4/ts files, rtp stream and http/ts
stream). Files play correctly and MP4Box/ffmpeg recognize them
correctly. should fix #1384
2008-01-04 20:05:15 +00:00
Laurent Aimar
5da32d6588 DVD CC are not reordered. 2007-10-18 22:26:27 +00:00
Laurent Aimar
85b124f08d Added cc data extraction support for mpeg 1/2 when the mpeg packetizer
is used. (Only dvb/atsc CC support is working)
2007-10-17 19:56:26 +00:00
Laurent Aimar
a5cf7e3cf0 Added support for basic LOAS AAC stream. 2007-10-11 17:29:49 +00:00
Rafaël Carré
6ee1e193fd Removes trailing spaces. Removes tabs. 2007-09-10 18:56:52 +00:00
Rémi Denis-Courmont
e40d134c69 Remove _GNU_SOURCE and string.h too 2007-08-20 19:10:23 +00:00
Rémi Denis-Courmont
81c5ac29fa Remove stdlib.h 2007-08-20 19:08:22 +00:00
Laurent Aimar
70a8bb9649 All: preliminary support for audio while playing faster/slower (1/4 -> 4).
It use our standard resampler to do it and so we do not keep
pitch yet (I am working on a soundtouch resampler).
Please test any regression.
2007-06-12 19:46:35 +00:00
Laurent Aimar
ab1b0ebec3 Improved BLOCK_FLAG_DISCONTINUITY|BLOCK_FLAG_CORRUPTED handling in packetizers.
(I do not reset timestamp on purpose, it will at least break demuxer using
packetizer)
2007-05-30 17:36:36 +00:00
Laurent Aimar
09eaac8108 Packetizers should trash all blocks with DISCONTINUITY or CORRUPTED flag set.
As a side effect, this workaround the AAC decoding problem after pause/seek
when going through our packetizer (eg: pause/seek with vlc VOD).

But the bug is still there : faad will stop decoding audio forever after
receiving a buffer full of 0 (at least with faad2-2.5 from
audiocoding.com, faad2 from mplayer svn does not show this problem)
2007-03-02 19:51:20 +00:00
Laurent Aimar
b160af605b Added all missing case for "Detection of the first VCL NAL unit of a primary coded picture".
Fixed prepend of SPS/PPS per I frame.
2007-02-27 19:39:41 +00:00
Laurent Aimar
f95648173c Added VC-1 packetizer.
(But it still won't be decoded by ffmpeg, we provide extra data too late)
2007-02-25 12:31:30 +00:00
Laurent Aimar
75688a7cde Fixed uninitialized value for ADTS stream. 2007-02-25 11:42:23 +00:00
Clément Stenac
80fde19dfe More cleanup 2006-12-24 14:18:21 +00:00
Rémi Denis-Courmont
de90c15151 Fix small memleak 2006-12-03 17:02:02 +00:00
Clément Stenac
d3fe7f2879 A bit of headers cleanup
* Headers in include must contain the structures and prototypes needed
  by the plugins and should be named vlc_*.
* Headers in include/vlc must contain the structures and prototypes
  needed by external libvlc clients

* Moved and renamed some things in headers. 
   - Removed vlc_cpu.h, vlc_error.h (merged in vlc_common)
   - Removed snapshot.h (merged in vlc_vout.h)
   - Removed vlc_spu.h (merged in vlc_osd.h)
   - Removed intf_eject.h and vlc_interaction.h (merged in vlc_interface)
   - Moved all internal headers to src
   - Merged vlc_video.h and video_output.h and move private things to src
   - Removed vlc/intf.h, vlc/aout.h, vlc/vout.h, vlc/decoder.h and vlc/input.h
     (meta headers for use in modules, and often implying too large 
     dependencies)
* Removed some useless dependencies
* Unexported a bunch of functions and structures used only in src/
  (--> Still some work here)
* Finally made input_thread_t and input_source_t (mostly) private. 
  Added input_GetItem to fetch the input_item of an input_thread
* Cleaned up deprecated entries in vlc_symbols.h and bumped up symbol 
  prefix

This commit has a 99% probability of breaking the build, 0.1% of killing
your cat and 0% of getting you hot chicks.
2006-11-26 14:20:34 +00:00
Christophe Massiot
5d3d5ee7b9 * modules/codec/libmpeg2.c, modules/packetizer/mpegvideo.c: Fixed wrong PTS
and DTS for field pictures.
2006-11-08 14:24:54 +00:00
Derk-Jan Hartman
b725ca4af8 * packetizer h264: Donwq't gather the block chain when resending the headers. Only insert the blocks 2006-10-17 18:23:48 +00:00
Derk-Jan Hartman
7d1cff0bb2 Apparently ffmpeg doesn't like how we were feeding the SPS/PPS to it. At least this way it works. There is still something wrong. Instead of directly starting to work after the SPS/PPS is received (from MPEG-TS), it waits 1 extra I frame. If I just output the SPS/PPS directly instead of reinserting it, it works directly after the SPS/PPS is received on the I frame directly following them. 2006-10-16 21:58:12 +00:00
Derk-Jan Hartman
b876d12e0e * Also pass along the USER DATA of mpeg4
This should help identify the producing encoder and fix some issues with codec specific problems
2006-08-24 01:20:43 +00:00
Derk-Jan Hartman
4ecb86281f * Handle Dicas AVC FOURCC 2006-08-24 01:17:58 +00:00
Gildas Bazin
834b64d0f7 * modules/packetizer/h264.c: fixed insertion of SPS/PPS. 2006-08-22 18:24:57 +00:00
Derk-Jan Hartman
cc5aad0aba * first sps, then pps 2006-08-14 23:37:28 +00:00
Gildas Bazin
4598f227ca * modules/packetizer/h264.c: insert an SPS and PPS before each keyframe. 2006-08-14 22:16:07 +00:00
Derk-Jan Hartman
94431db895 * Victory at last. The h264 packetizer is fixed. Thx to Haali and gibalou for the insights.
- manage private data properly
  - use 4 byte startcodes
2006-08-14 21:44:15 +00:00
Gildas Bazin
09b70e1c19 * modules/packetizer/mpeg4video.c: ts/ps muxers rely on VOL being present in the stream. 2006-06-11 20:52:08 +00:00
Gildas Bazin
a1bf965dd5 * modules/packetizer/mpeg4video.c: rewrite using the block helper facility. Fixes a few issues with the previous packetizer and is simpler. 2006-06-09 22:20:11 +00:00
Christophe Massiot
386b36feda * ALL: extention -> extension 2006-04-06 17:54:21 +00:00
Clément Stenac
ec937f9653 2nd packetizer round (Refs:#438) 2006-03-31 16:24:32 +00:00
Felix Paul Kühne
bf706caf1d * another 1st string review, refs #438 2006-03-25 12:54:27 +00:00
Jean-Paul Saman
bd6802930c Fixed a memleak 2006-02-01 20:24:23 +00:00
Antoine Cellerier
2cb472dba0 FSF address change. 2006-01-12 23:10:04 +00:00
Gildas Bazin
261f3e11d2 * modules/packetizer/h264.c: fixed massive memory leak. 2005-12-06 20:10:02 +00:00
Gildas Bazin
50fd08c33f * modules/packetizer/h264.c: small fix to annexe-b packetizer. 2005-09-13 22:01:20 +00:00
Gildas Bazin
29a8ff8d07 * modules/packetizer/h264.c: date SPS and PPS blocks built from the codec extradata. 2005-09-13 17:48:32 +00:00
Jean-Paul Saman
d8fc9f3b89 By default --packetizer-mpegvideo-sync-iframe is disabled. 2005-08-10 21:47:13 +00:00
Jean-Paul Saman
396d771330 Flagging BLOCK_FLAG_DISCONTINUITY for every PID in the input when the slider is moved on the GUI or a jump in the stream is made. It is also propagated to the mpegvideo packetizer. The packetizer has a new mode to sync on I-frame boundary after such a jump. It avoids sending some broken frames to the client. (Forward port of branches/0.8.1-jpsaman-thedj revision 11067 and 11842.) 2005-08-10 20:07:20 +00:00
Laurent Aimar
d21227b69c * h264: handle SPS/PPS in annexb format in extra data (needed for RTP). 2005-07-19 08:39:50 +00:00
Christophe Massiot
130e829182 * modules/packetizer/mpegvideo.c: Drop corrupt blocks. 2005-07-11 09:43:38 +00:00
Sam Hocevar
738926876b * Fixed a bunch of coding errors here and there. 2005-07-11 08:52:14 +00:00
Rémi Denis-Courmont
fe087a3828 Make Zorglub less unhappy 2005-07-09 06:17:09 +00:00