aboutsummaryrefslogtreecommitdiffhomepage
path: root/libmpdemux/muxer_mpeg.c
Commit message (Collapse)AuthorAge
* if no stream could be muxed flush_buffers() returns 0: prevents while(1) ↵Gravatar nicodvb2006-10-22
| | | | | | stall at the end git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20350 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove duplicate min/max macro definition.Gravatar diego2006-10-11
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20159 b3059339-0415-0410-9bf9-f77b7e298cf2
* forgotten to pass the crc32 be2me_32()Gravatar nicodvb2006-09-02
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19643 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove unused variables, patch by Stefan Huehner stefan at huehner org.Gravatar diego2006-07-08
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18963 b3059339-0415-0410-9bf9-f77b7e298cf2
* try to reduce the distance between consecutive frames with pts to no more ↵Gravatar nicodvb2006-06-18
| | | | | | than 0.4 seconds (required by dvds) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18754 b3059339-0415-0410-9bf9-f77b7e298cf2
* prevent buffer overflow in the STD; simplified fill_packet() (moving part of ↵Gravatar nicodvb2006-06-18
| | | | | | the code to get_packet_stats()) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18748 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix potential integer overflows in memory allocation.Gravatar rtogni2006-06-04
| | | | | | | Patch by Rich and me git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18559 b3059339-0415-0410-9bf9-f77b7e298cf2
* removed more unused stuffGravatar nicodvb2006-04-24
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18250 b3059339-0415-0410-9bf9-f77b7e298cf2
* when muxing mpeg audio streams analyze the first 32 KB of data to obtain the ↵Gravatar nicodvb2006-04-24
| | | | | | most likely correct layer, otherwise every misdetection during parse_audio() will lead to wrong timestamps and loss of synchrony git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18249 b3059339-0415-0410-9bf9-f77b7e298cf2
* simplified parse_audio()Gravatar nicodvb2006-04-24
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18239 b3059339-0415-0410-9bf9-f77b7e298cf2
* removed more unused code and struct membersGravatar nicodvb2006-04-22
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18201 b3059339-0415-0410-9bf9-f77b7e298cf2
* removed unused variablesGravatar nicodvb2006-04-22
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18200 b3059339-0415-0410-9bf9-f77b7e298cf2
* moved inline at beginning of declarationGravatar nicodvb2006-04-22
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18198 b3059339-0415-0410-9bf9-f77b7e298cf2
* finally replaced the old interleaving with the new one that respects ↵Gravatar nicodvb2006-04-22
| | | | | | buffering and [pd]ts<->scr constraints; don't check spriv->framebuf_used in find_best_stream() git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18197 b3059339-0415-0410-9bf9-f77b7e298cf2
* introduced new functions to handle pack writing and interleaving strategy ↵Gravatar nicodvb2006-04-22
| | | | | | (will soon replace current ones) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18193 b3059339-0415-0410-9bf9-f77b7e298cf2
* fixed muxrates for xvcd and xsvcdGravatar nicodvb2006-04-22
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18188 b3059339-0415-0410-9bf9-f77b7e298cf2
* audio init code was previously moved to fix_parameters() so removed from ↵Gravatar nicodvb2006-04-22
| | | | | | write_chunk() git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18187 b3059339-0415-0410-9bf9-f77b7e298cf2
* introduced structures and code to keep track of decoder's buffers sizesGravatar nicodvb2006-04-22
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18184 b3059339-0415-0410-9bf9-f77b7e298cf2
* new code to simplify assignment of timestamps; removed temp_ref from ↵Gravatar nicodvb2006-04-22
| | | | | | mpeg_frame_t and modified add_frame() accordingly; removed no more used drop_delayed_audio() and save_delayed_audio() git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18182 b3059339-0415-0410-9bf9-f77b7e298cf2
* removed useless (and broken as hell) buffering code from muxer1; buffering ↵Gravatar nicodvb2006-04-20
| | | | | | constraints will be fully respected when one of the forthcoming patches is applied git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18167 b3059339-0415-0410-9bf9-f77b7e298cf2
* removed skip_padding (never used and totally useless)Gravatar nicodvb2006-04-20
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18166 b3059339-0415-0410-9bf9-f77b7e298cf2
* added support for DX50 and dx50 4CCsGravatar nicodvb2006-04-20
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18165 b3059339-0415-0410-9bf9-f77b7e298cf2
* fixed wrong operator precedence in parse_mpeg4_video()Gravatar nicodvb2006-04-20
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18164 b3059339-0415-0410-9bf9-f77b7e298cf2
* simplified code to patch the video framerate (removed silly comparisons)Gravatar nicodvb2006-04-20
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18163 b3059339-0415-0410-9bf9-f77b7e298cf2
* changed timebase from 1024 to 300 (no rounding errors with any of the ↵Gravatar nicodvb2006-04-20
| | | | | | allowed framerates); write scr_extension accordingly. This is the first of a long series of patches to rewrite the muxer git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18162 b3059339-0415-0410-9bf9-f77b7e298cf2
* workaround to prevent segfault: when using -ve lavc with b-frames ↵Gravatar nicodvb2006-04-05
| | | | | | write_chunk(1st video frame) gets called with len=-1UL; -1ULl to whomever calls me that way git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18045 b3059339-0415-0410-9bf9-f77b7e298cf2
* dereference muxer->priv only after having checked muxer!=NULL in ↵Gravatar nicodvb2006-03-11
| | | | | | write_chunk(); closes cid 206 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17819 b3059339-0415-0410-9bf9-f77b7e298cf2
* init delta_pts before using it; fixes cid 239Gravatar nicodvb2006-03-11
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17816 b3059339-0415-0410-9bf9-f77b7e298cf2
* check pce_ptr before using it; fixes cid 207Gravatar nicodvb2006-03-11
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17815 b3059339-0415-0410-9bf9-f77b7e298cf2
* delay rff by 6, not 3 frames, so the rff will be in the middle of the 12 ↵Gravatar nicodvb2006-02-12
| | | | | | frames sequence git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17604 b3059339-0415-0410-9bf9-f77b7e298cf2
* experimental film2pal and ntsc2pal soft telecinerGravatar nicodvb2006-02-12
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17601 b3059339-0415-0410-9bf9-f77b7e298cf2
* init frame duration to 1/fps when we have a frame but not the enclosing ↵Gravatar nicodvb2006-02-11
| | | | | | sequence header: it's workaround against lavf's demuxer that doesn't sync to seq_hdr unlike mplayer's native demuxers git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17592 b3059339-0415-0410-9bf9-f77b7e298cf2
* tff wasn't correctly unset in soft_telecine()Gravatar nicodvb2006-02-10
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17584 b3059339-0415-0410-9bf9-f77b7e298cf2
* removed unused variablesGravatar nicodvb2006-02-06
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17541 b3059339-0415-0410-9bf9-f77b7e298cf2
* fixed wrong delta_frame calculation that would affect soft-telecineGravatar nicodvb2006-02-06
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17540 b3059339-0415-0410-9bf9-f77b7e298cf2
* removed forgotten fprintf()Gravatar nicodvb2006-01-30
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17519 b3059339-0415-0410-9bf9-f77b7e298cf2
* use mp_a52_framesize() when liba52 is not availableGravatar nicodvb2006-01-27
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17494 b3059339-0415-0410-9bf9-f77b7e298cf2
* change muxer_write_chunk() so that pts/dts _could_ be passed from encoder to ↵Gravatar michael2006-01-26
| | | | | | muxer git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17488 b3059339-0415-0410-9bf9-f77b7e298cf2
* massive attack: mp_msg printf format fixesGravatar rathann2006-01-12
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17367 b3059339-0415-0410-9bf9-f77b7e298cf2
* removed previously forgotten reording options/flagsGravatar nicodvb2006-01-03
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17302 b3059339-0415-0410-9bf9-f77b7e298cf2
* removed broken frame reording code; unified audio and video frame storing ↵Gravatar nicodvb2006-01-03
| | | | | | code (in memory, not in the packets); simple workaround to handle non-standard framerate mpeg1/2 video git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17299 b3059339-0415-0410-9bf9-f77b7e298cf2
* simplification: don't use residual_buffer, but prepend remainder of current ↵Gravatar nicodvb2005-12-30
| | | | | | 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() git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17272 b3059339-0415-0410-9bf9-f77b7e298cf2
* fixGravatar rathann2005-12-05
| | | | | | | | muxer_mpeg.c:2315: warning: implicit declaration of function 'mp_get_mp3_header' muxer_mpeg.c:2339: warning: implicit declaration of function 'a52_syncinfo' git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17092 b3059339-0415-0410-9bf9-f77b7e298cf2
* fixed wrong telecine trf pattern; fall back to mpeg2 when user specifies ↵Gravatar nicodvb2005-11-30
| | | | | | unknown format git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17067 b3059339-0415-0410-9bf9-f77b7e298cf2
* Clean up some muxer messages, patch by Corey Hickey bugfood-ml AT ↵Gravatar reynaldo2005-11-29
| | | | | | -fatooh/org- , small fixes by me git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17066 b3059339-0415-0410-9bf9-f77b7e298cf2
* buffering in the muxer layer; patch by Corey Hickey (bugfood-ml ad fatooh ↵Gravatar nicodvb2005-11-21
| | | | | | punctum org) plus small fixes by me git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17024 b3059339-0415-0410-9bf9-f77b7e298cf2
* Unify include path handling, -I.. is in CFLAGS.Gravatar diego2005-11-18
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17013 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use PRI?64 defines as format strings for 64 bit variables.Gravatar reimar2005-10-13
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16751 b3059339-0415-0410-9bf9-f77b7e298cf2
* reconcile with earlier fps fix in mpeg header parserGravatar rfelker2005-08-10
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16193 b3059339-0415-0410-9bf9-f77b7e298cf2
* set i_bps in demux_audio for WAV and MP3 to avoid division by zero beforeGravatar reimar2005-08-01
| | | | | | | decoder sets it. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16163 b3059339-0415-0410-9bf9-f77b7e298cf2