log libmpdemux/muxer_mpeg.c @ 31443:ea6731235485

age author description
Sun, 09 May 2010 14:45:29 +0000 diego Remove internal liba52 copy.
Sun, 09 May 2010 12:28:15 +0000 diego Use the system liba52 headers when internal liba52 is disabled, fixes:
Sun, 04 Apr 2010 16:12:23 +0000 diego Mark muxer-related m_option_t arrays as const.
Fri, 26 Feb 2010 15:01:37 +0000 diego Do not cast the results of malloc/calloc/realloc.
Sat, 20 Feb 2010 21:02:49 +0000 diego cosmetics: Remove pointless empty lines at EOF.
Wed, 17 Feb 2010 22:40:50 +0000 diego Add separate header for mp_a52_framesize(); avoids forward declarations.
Wed, 17 Feb 2010 22:28:24 +0000 diego Add separate header for aac_parse_frame(); avoids forward declarations.
Wed, 13 May 2009 02:58:57 +0000 diego whitespace cosmetics: Remove all trailing whitespace.
Fri, 08 May 2009 21:51:13 +0000 diego Add standard license header to all files in libmpdemux.
Tue, 05 May 2009 17:36:31 +0000 diego Add prototype for mp_a52_framesize().
Mon, 16 Feb 2009 02:00:29 +0000 diego Replace double semicolon by single semicolon.
Wed, 03 Dec 2008 23:01:03 +0000 diego Get rid of pointless 'extern' keywords.
Wed, 30 Jul 2008 12:01:30 +0000 diego Start unifying names of internal preprocessor directives.
Fri, 16 May 2008 09:41:00 +0000 diego cosmetics: Remove pointless parentheses from return statements.
Wed, 30 Apr 2008 11:03:41 +0000 diego Remove unnecessary version.h #includes.
Thu, 14 Feb 2008 14:23:55 +0000 diego typo fix: inited --> initialized
Sun, 13 Jan 2008 21:06:30 +0000 reimar Put bff_mask into muxer context instead of a global variable.
Wed, 21 Nov 2007 09:14:01 +0000 diego Remove unused function write_psm_block(), fixes the warning:
Fri, 02 Nov 2007 20:06:28 +0000 nicodvb prevent unlikely memleak
Fri, 02 Nov 2007 19:52:22 +0000 nicodvb 10l, priv->use_psm can be 1 only if the format is genmpeg2
Fri, 02 Nov 2007 19:06:15 +0000 nicodvb add streams to the PSM only if priv->use_psm is set, otherwise the muxer would
Fri, 02 Nov 2007 19:01:13 +0000 nicodvb moved to fix_parameters() the decision of the necessity of the PSM based on the format of the video stream
Fri, 02 Nov 2007 18:52:08 +0000 nicodvb removed no more needed variable
Fri, 02 Nov 2007 18:50:41 +0000 nicodvb moved to fix_parameters() the code that decides if the PSM is needed
Fri, 02 Nov 2007 17:48:27 +0000 nicodvb repeat the PSM once every second (in terms of delta_scr) otherwise playing the file from the middle would miss the first instance
Fri, 02 Nov 2007 17:43:39 +0000 nicodvb remove the registration descriptor from the PSM: writing the fourcc in it makes it total crap
Fri, 02 Nov 2007 11:43:03 +0000 nicodvb 100% cosmetics: reformatted with tabs and symmetric braces and removed useless braces and trailing tabs
Fri, 28 Sep 2007 21:20:41 +0000 nicodvb fixed bug introduced with previous commit: patch_panscan() must work in the sequence_display_extension, not on se_ptr
Fri, 28 Sep 2007 21:13:26 +0000 nicodvb 1000l, the tff flag was never cleared before being overwritten with the value on bff_mask;
Sun, 24 Jun 2007 14:54:56 +0000 reimar Use proper PRI?64 format strings
Sun, 08 Apr 2007 16:15:41 +0000 nicodvb added :interleaving2, a better method to determine which stream whouls be flushed
Sun, 08 Apr 2007 10:09:56 +0000 nicodvb in mpegfile_write_header(only for mpeg1/2) don't overwrite the values of bufsize with dwSuggestedBufferSize (those values are completely invented)
Sun, 08 Apr 2007 10:00:47 +0000 nicodvb reindentation
Sun, 08 Apr 2007 10:00:05 +0000 nicodvb in the system header set audio_locked/video_locked only for dvd and vcd
Sun, 08 Apr 2007 09:50:27 +0000 nicodvb small syntax fix: muxrate is expressed in units of 400 bits/second, not 50 bytes per second
Sat, 07 Apr 2007 16:42:28 +0000 nicodvb 10l, the scr must be reset before overwriting the first pack with the correct system header (format=mpeg1|2)
Sat, 07 Apr 2007 08:51:26 +0000 nicodvb reversed r22879 until I discover why it's giving so many sync problems; I'll eventually recommit it in a fixed form
Sun, 01 Apr 2007 21:27:47 +0000 nicodvb removed init_apts and init_vpts; added :adelay in addition to :vdelay
Sun, 01 Apr 2007 20:03:24 +0000 nicodvb cosmetics: removed trailing spaces
Sun, 01 Apr 2007 12:25:31 +0000 nicodvb in flush_buffers() removed code that required the presence of an amount of audio data >= video data in the temporal domain
Thu, 15 Mar 2007 18:36:36 +0000 diego Add explicit location for headers from the stream/ directory.
Sun, 25 Feb 2007 23:01:13 +0000 nicodvb 2 less variables
Sun, 25 Feb 2007 22:55:14 +0000 nicodvb cosmetics: reformatted
Sun, 25 Feb 2007 22:41:17 +0000 nicodvb removed unused variables
Sun, 25 Feb 2007 22:40:05 +0000 nicodvb simplified parse_mpeg12_video()
Sun, 25 Feb 2007 21:21:09 +0000 nicodvb member real_framerate is completely useless
Sun, 25 Feb 2007 14:33:19 +0000 nicodvb cosmetics: reindented
Sun, 25 Feb 2007 14:32:14 +0000 nicodvb removed commented/useless code from parse_mpeg12_video()
Sun, 18 Feb 2007 16:46:12 +0000 nicodvb all options must be GLOBAL; patch by Trent Piepho (xyzzy speakeasy org)
Mon, 05 Feb 2007 23:46:08 +0000 rathann Fix a few gcc warnings, approved by Diego and Reimar.
Mon, 18 Dec 2006 21:03:59 +0000 nicodvb muxers now write to output muxer->stream rather than to muxer->file
Sat, 09 Dec 2006 22:21:37 +0000 nicodvb align vbuf_size to the max value allowed by main profile @ high level
Sat, 09 Dec 2006 12:24:11 +0000 reimar Get rid of min/max macros from aviheader.h, they do not belong here.
Mon, 04 Dec 2006 22:08:11 +0000 nicodvb disable telecining when it can't be applied
Mon, 04 Dec 2006 21:58:07 +0000 nicodvb since display_frames in increased by a possibly negative number it had better be signed
Mon, 04 Dec 2006 21:27:05 +0000 nicodvb cosmetics
Mon, 04 Dec 2006 21:24:39 +0000 nicodvb removed dead code
Mon, 04 Dec 2006 21:20:01 +0000 nicodvb reimplemented :telecine and :film2pal in terms of dgpulldown
Mon, 04 Dec 2006 20:38:46 +0000 nicodvb pre-store in bff_mask the correct or-mask to be saved in the pce (slightly faster)
Mon, 04 Dec 2006 00:52:11 +0000 nicodvb 10l: wrong bitmask when patching the pce_ptr in soft_telecine()
Mon, 04 Dec 2006 00:02:15 +0000 nicodvb added generalized teleciner by Donald Graft
Sun, 03 Dec 2006 12:06:08 +0000 nicodvb cosmetics: anti-chaos reindentation
Fri, 01 Dec 2006 23:51:51 +0000 nicodvb permit to specify the sizes of the decoders' buffers
Wed, 29 Nov 2006 15:02:45 +0000 diego Remove bswap.h, use libavutil/bswap.h instead.
Tue, 21 Nov 2006 22:09:58 +0000 nicodvb permit muxing to raw pes (VDR uses this)
Sun, 22 Oct 2006 10:32:59 +0000 nicodvb if no stream could be muxed flush_buffers() returns 0: prevents while(1) stall at the end
Wed, 11 Oct 2006 15:28:54 +0000 diego Remove duplicate min/max macro definition.
Sat, 02 Sep 2006 19:00:30 +0000 nicodvb forgotten to pass the crc32 be2me_32()
Sat, 08 Jul 2006 17:28:36 +0000 diego Remove unused variables, patch by Stefan Huehner stefan at huehner org.
Sun, 18 Jun 2006 16:40:29 +0000 nicodvb try to reduce the distance between consecutive frames with pts to no more than 0.4 seconds (required by dvds)
Sun, 18 Jun 2006 10:39:09 +0000 nicodvb prevent buffer overflow in the STD; simplified fill_packet() (moving part of the code to get_packet_stats())
Sun, 04 Jun 2006 22:41:27 +0000 rtogni Fix potential integer overflows in memory allocation.
Mon, 24 Apr 2006 14:23:03 +0000 nicodvb removed more unused stuff
Mon, 24 Apr 2006 14:04:10 +0000 nicodvb when muxing mpeg audio streams analyze the first 32 KB of data to obtain the most likely correct layer, otherwise every misdetection during parse_audio() will lead to wrong timestamps and loss of synchrony
Mon, 24 Apr 2006 09:48:57 +0000 nicodvb simplified parse_audio()
Sat, 22 Apr 2006 18:15:23 +0000 nicodvb removed more unused code and struct members
Sat, 22 Apr 2006 18:02:19 +0000 nicodvb removed unused variables
Sat, 22 Apr 2006 17:55:39 +0000 nicodvb moved inline at beginning of declaration
Sat, 22 Apr 2006 17:47:53 +0000 nicodvb finally replaced the old interleaving with the new one that respects buffering and [pd]ts<->scr constraints; don't check spriv->framebuf_used in find_best_stream()
Sat, 22 Apr 2006 15:41:16 +0000 nicodvb introduced new functions to handle pack writing and interleaving strategy (will soon replace current ones)
Sat, 22 Apr 2006 13:31:05 +0000 nicodvb fixed muxrates for xvcd and xsvcd
Sat, 22 Apr 2006 13:25:46 +0000 nicodvb audio init code was previously moved to fix_parameters() so removed from write_chunk()
Sat, 22 Apr 2006 13:18:32 +0000 nicodvb introduced structures and code to keep track of decoder's buffers sizes
Sat, 22 Apr 2006 13:05:01 +0000 nicodvb new code to simplify assignment of timestamps; removed temp_ref from mpeg_frame_t and modified add_frame() accordingly; removed no more used drop_delayed_audio() and save_delayed_audio()
Thu, 20 Apr 2006 21:40:03 +0000 nicodvb removed useless (and broken as hell) buffering code from muxer1; buffering constraints will be fully respected when one of the forthcoming patches is applied
Thu, 20 Apr 2006 20:53:48 +0000 nicodvb removed skip_padding (never used and totally useless)
Thu, 20 Apr 2006 20:48:55 +0000 nicodvb added support for DX50 and dx50 4CCs
Thu, 20 Apr 2006 20:44:43 +0000 nicodvb fixed wrong operator precedence in parse_mpeg4_video()
Thu, 20 Apr 2006 20:38:09 +0000 nicodvb simplified code to patch the video framerate (removed silly comparisons)
Thu, 20 Apr 2006 20:32:36 +0000 nicodvb changed timebase from 1024 to 300 (no rounding errors with any of the allowed framerates); write scr_extension accordingly. This is the first of a long series of patches to rewrite the muxer
Wed, 05 Apr 2006 20:51:35 +0000 nicodvb workaround to prevent segfault: when using -ve lavc with b-frames write_chunk(1st video frame) gets called with len=-1UL; -1ULl to whomever calls me that way
Sat, 11 Mar 2006 23:38:54 +0000 nicodvb dereference muxer->priv only after having checked muxer!=NULL in write_chunk(); closes cid 206
Sat, 11 Mar 2006 23:21:09 +0000 nicodvb init delta_pts before using it; fixes cid 239
Sat, 11 Mar 2006 23:15:57 +0000 nicodvb check pce_ptr before using it; fixes cid 207
Sun, 12 Feb 2006 11:47:36 +0000 nicodvb delay rff by 6, not 3 frames, so the rff will be in the middle of the 12 frames sequence
Sun, 12 Feb 2006 11:04:12 +0000 nicodvb experimental film2pal and ntsc2pal soft teleciner
Sat, 11 Feb 2006 21:45:42 +0000 nicodvb init frame duration to 1/fps when we have a frame but not the enclosing sequence header: it's workaround against lavf's demuxer that doesn't sync to seq_hdr unlike mplayer's native demuxers
Fri, 10 Feb 2006 22:28:32 +0000 nicodvb tff wasn't correctly unset in soft_telecine()
Mon, 06 Feb 2006 21:22:30 +0000 nicodvb removed unused variables
Mon, 06 Feb 2006 20:59:19 +0000 nicodvb fixed wrong delta_frame calculation that would affect soft-telecine
Mon, 30 Jan 2006 21:18:53 +0000 nicodvb removed forgotten fprintf()
Fri, 27 Jan 2006 23:07:53 +0000 nicodvb use mp_a52_framesize() when liba52 is not available
Thu, 26 Jan 2006 19:32:07 +0000 michael change muxer_write_chunk() so that pts/dts _could_ be passed from encoder to muxer
Thu, 12 Jan 2006 20:04:36 +0000 rathann massive attack: mp_msg printf format fixes
Tue, 03 Jan 2006 22:14:27 +0000 nicodvb removed previously forgotten reording options/flags
Tue, 03 Jan 2006 22:02:11 +0000 nicodvb removed broken frame reording code; unified audio and video frame storing code (in memory, not in the packets); simple workaround to handle non-standard framerate mpeg1/2 video
Fri, 30 Dec 2005 18:46:56 +0000 nicodvb simplification: don't use residual_buffer, but prepend remainder of current frame to next one (needed for future work; init frame->pos to 0 in reorder_frame(); fix: don't go beyond last frame in flush_buffer()
Mon, 05 Dec 2005 01:26:09 +0000 rathann fix
Wed, 30 Nov 2005 21:45:32 +0000 nicodvb fixed wrong telecine trf pattern; fall back to mpeg2 when user specifies unknown format
Tue, 29 Nov 2005 22:04:57 +0000 reynaldo Clean up some muxer messages, patch by Corey Hickey bugfood-ml AT -fatooh/org- , small fixes by me
Mon, 21 Nov 2005 22:53:14 +0000 nicodvb buffering in the muxer layer; patch by Corey Hickey (bugfood-ml ad fatooh punctum org) plus small fixes by me
Fri, 18 Nov 2005 14:39:25 +0000 diego Unify include path handling, -I.. is in CFLAGS.
Thu, 13 Oct 2005 18:33:56 +0000 reimar Use PRI?64 defines as format strings for 64 bit variables.
Wed, 10 Aug 2005 01:42:06 +0000 rfelker reconcile with earlier fps fix in mpeg header parser
Mon, 01 Aug 2005 18:36:50 +0000 reimar set i_bps in demux_audio for WAV and MP3 to avoid division by zero before
Sun, 10 Jul 2005 08:36:39 +0000 nicodvb added support for vbr audio (frames are parsed individually); fixed small bugs in the management of pes_extension
Wed, 27 Apr 2005 18:30:10 +0000 nicodvb added support for AAC; moved most of MSGL_V to MSGL_DBG2 to reduce verbosity
Sun, 10 Apr 2005 10:06:59 +0000 nicodvb changed :vaspect option to CONF_TYPE_FLOAT
Mon, 07 Mar 2005 07:36:27 +0000 nicodvb fixed support for mp3 at <32000 sample_rate
Fri, 04 Mar 2005 07:43:00 +0000 nicodvb converted vframerate to CONF_TYPE_FLOAT