summaryrefslogtreecommitdiffstats
path: root/libmpcodecs
Commit message (Collapse)AuthorAgeFilesLines
* audio: support parameter changes (e.g. channel count) during playbackreimar2010-11-022-25/+61
| | | | | | | | | | | | | | | | | Add support for parameter changes (e.g. channel count) during playback. This makes decoding AC3 files that switch between 2 and 6 channels work reasonably well even with -channels 6 and ffac3 decoder. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31737 b3059339-0415-0410-9bf9-f77b7e298cf2 Fix typo in error message: ACC -> AAC git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32473 b3059339-0415-0410-9bf9-f77b7e298cf2 Avoid printing AAC with SBR warning on every decode call, instead print it only after every decoder reconfiguration. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32476 b3059339-0415-0410-9bf9-f77b7e298cf2
* ad_mpeg123: Enable robust resyncdiego2010-11-021-0/+3
| | | | | | | | | This prevents the decoder from giving up give after long pieces of invalid data, for example during transmission errors with DVB-T and similar. patch by Thomas Orgis, thomas-forum orgis org git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31732 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use AV_RL* macros instead of typecasts where appropriatereimar2010-11-025-27/+21
| | | | | | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31680 b3059339-0415-0410-9bf9-f77b7e298cf2 100l compialtion fix and use AV_RB32. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31683 b3059339-0415-0410-9bf9-f77b7e298cf2 Current FFmpeg installs intreadwrite.h, but keep using the internal version for now to keep the possibility of compiling against older FFmpeg lib versions.
* libgsm: Remove libgsm wrapperreimar2010-11-025-1214/+0
| | | | | | | | | | Remove copy of old and ugly libgsm code and wrapper. Decoding these formats is supported via FFmpeg both natively and through libgsm. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31657 b3059339-0415-0410-9bf9-f77b7e298cf2 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31664 b3059339-0415-0410-9bf9-f77b7e298cf2
* vd_xanim.c: Give functions proper prototypesreimar2010-11-021-24/+45
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31611 b3059339-0415-0410-9bf9-f77b7e298cf2
* vf_geq: Fix function prototypes to match the required type.reimar2010-11-021-3/+3
| | | | | | Fixes "initialization from incompatible pointer type" warnings. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31609 b3059339-0415-0410-9bf9-f77b7e298cf2
* cleanup: Add const qualifiers for struct ad_functions pointersreimar2010-11-021-1/+1
| | | | | | | The ad_functions structs are in rodata, mark some pointers to them const. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31606 b3059339-0415-0410-9bf9-f77b7e298cf2
* ad_faad: fix compilation using external libfaadattila2010-11-021-0/+11
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31603 b3059339-0415-0410-9bf9-f77b7e298cf2
* ad_mpg123: add MP3 decoding through libmpg123diego2010-11-022-0/+580
| | | | | | patch by Thomas Orgis, thomas-forum orgis org git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31590 b3059339-0415-0410-9bf9-f77b7e298cf2
* vd_ffmpeg: add av_unused attribute to swap_palette()diego2010-11-021-1/+1
| | | | | | Only used on bigendian machines. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31586 b3059339-0415-0410-9bf9-f77b7e298cf2
* vf_ffmpeg: make VP8 decoder work by disabling drreimar2010-11-021-1/+1
| | | | | | | Allow the FFmpeg VP8 decoder to work by disabling dr for it (thus we do not need edge emulation). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31560 b3059339-0415-0410-9bf9-f77b7e298cf2
* ad_faad: Improve LATM recognitioncehoyos2010-11-021-2/+24
| | | | | | Patch by Dan Oscarsson, Dan d Oscarsson a tieto d com git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31543 b3059339-0415-0410-9bf9-f77b7e298cf2
* cleanup: #include loader/wine/winbase.h instead of local declarationsdiego2010-11-023-10/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31414 b3059339-0415-0410-9bf9-f77b7e298cf2
* vf_rgb2bgr: remove the filtersiretart2010-11-022-125/+0
| | | | | | | | | | Its functionality has been superseeded by sws by quite some time, and the "swap" functionality is now provided by vf_format. see http://comments.gmane.org/gmane.comp.video.mplayer.devel/55804 for a full discussion. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31350 b3059339-0415-0410-9bf9-f77b7e298cf2
* vd_ffmpeg: Minor code simplification.reimar2010-10-271-1/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31336 b3059339-0415-0410-9bf9-f77b7e298cf2
* vd_ffmpeg: fix aspect ratio problems with recent FFmpegUoti Urpala2010-10-161-0/+2
| | | | | | | | | | The code left ctx->last_sample_aspect_ratio at 0/0 when allocating a context. In older FFmpeg versions av_cmp_q() against 0/0 always said the numbers are equal; but this changed recently, triggering incorrect overwrite of container aspect ratio. The logic looks like it'd need further fixes, but for now just initialize last_sample_aspect_ratio to 0/1; this should restore the previous behavior from before FFmpeg changes, which worked well enough for the most common cases.
* vd_ffmpeg: fix calloc/av_free mixupUoti Urpala2010-10-161-7/+4
| | | | | | avctx->palctrl was allocated with calloc() but freed with av_freep(). Free it with free() instead. Also change the main decoder context allocation to use talloc.
* Merge svn changes up to r31332Uoti Urpala2010-06-052-2/+18
|\
| * Extend -vf format to allow substituting the format for a compatible onereimar2010-06-051-2/+16
| | | | | | | | | | | | | | (e.g. chaning rgb24 to bgr24). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31331 b3059339-0415-0410-9bf9-f77b7e298cf2
| * Fix -vf format and -vf noformat to work with slices.reimar2010-06-052-0/+2
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31330 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Merge svn changes r31318 to r31328Uoti Urpala2010-06-052-5/+5
|\| | | | | | | | | r31328 is a somewhat questionable (changing the option at that point isn't quite safe), but it was a failure case already...
| * Fix compilation after FFmpeg r23485.cehoyos2010-06-052-5/+5
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31322 b3059339-0415-0410-9bf9-f77b7e298cf2
| * Limit buffered PTS only when we actually got a frame from the decoder.reimar2010-06-031-14/+17
| | | | | | | | | | | | | | | | | | | | This avoids some issues with H.264 PAFF due to dropping PTS values too early because only every second packet actually produced output. Just keeping up to one additional pts value would have avoided this particular issue as well, but this is more generic. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31312 b3059339-0415-0410-9bf9-f77b7e298cf2
| * ass_set_aspect_ratio() takes three arguments since 0x00907010.cehoyos2010-06-022-2/+2
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31304 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Merge svn changes up to r31303Uoti Urpala2010-06-023-24/+33
|\|
| * avoid using swscale internals by copying in palette8torbg16 and its bgr variantsiretart2010-06-011-1/+18
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31303 b3059339-0415-0410-9bf9-f77b7e298cf2
| * deprecate palette8topacked32 in favor of public API functions ↵siretart2010-06-011-8/+9
| | | | | | | | | | | | | | | | | | | | | | | | sws_convertPalette8ToPacked32 and -24 additionallym deprecate palette8torgb16 and its bgr variant without replacement. These functions are not meant to be used by applications. Discussed at: http://comments.gmane.org/gmane.comp.video.ffmpeg.devel/109340 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31301 b3059339-0415-0410-9bf9-f77b7e298cf2
| * Fix compilation after FFmpeg r23402.cehoyos2010-06-012-5/+6
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31299 b3059339-0415-0410-9bf9-f77b7e298cf2
| * remove palette8torgb15 and palette8tobgr15siretart2010-06-011-10/+0
| | | | | | | | | | | | | | | | | | They contain exactly the same code as their 16bit variants, so this is effectively code de-duplication. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31298 b3059339-0415-0410-9bf9-f77b7e298cf2
| * Forgotten part of previous commit (extern declaration of drc_level).reimar2010-05-301-0/+2
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31287 b3059339-0415-0410-9bf9-f77b7e298cf2
| * Use the -a52drc option also for the libavcodec decoder.reimar2010-05-303-6/+7
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31286 b3059339-0415-0410-9bf9-f77b7e298cf2
* | ad_ffmpeg: set lavc drc_scale parameter according to opts->drc_levelUoti Urpala2010-06-021-0/+3
| |
* | options: move -a52drc to option structUoti Urpala2010-06-021-9/+8
| | | | | | | | Also allow a range up to 2.
* | Merge svn changes up to r31265Uoti Urpala2010-06-021-1/+1
|\|
| * cosmetics: Remove some commented-out #includes, fix a comment grammar error.diego2010-05-291-4/+1
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31260 b3059339-0415-0410-9bf9-f77b7e298cf2
| * Directly mark jpeg_buf_src() as void instead of using some indirection marcro.diego2010-05-291-1/+1
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31259 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Merge svn changes up to r31256Uoti Urpala2010-05-301-3/+3
|\|
| * Use MSGT_DECVIDEO in a video decoder.cehoyos2010-05-281-3/+3
| | | | | | | | | | | | | | Patch by Giorgio Vazzana, mywing81 gmail git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31249 b3059339-0415-0410-9bf9-f77b7e298cf2
| * cosmetics: Drop pointless _s suffix from 'struct ad_functions'.diego2010-05-271-1/+1
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31231 b3059339-0415-0410-9bf9-f77b7e298cf2
| * cosmetics: Drop pointless _s suffix from 'struct mp_image'.diego2010-05-271-1/+1
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31230 b3059339-0415-0410-9bf9-f77b7e298cf2
| * cosmetics: Drop _s suffix from 'struct vd_functions'.diego2010-05-271-1/+1
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31229 b3059339-0415-0410-9bf9-f77b7e298cf2
| * cosmetics: K&R coding stylediego2010-05-271-259/+298
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31228 b3059339-0415-0410-9bf9-f77b7e298cf2
| * cosmetics: K&R coding stylediego2010-05-271-203/+236
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31227 b3059339-0415-0410-9bf9-f77b7e298cf2
| * whitespace cosmeticsdiego2010-05-254-4/+4
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31217 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Merge svn changes up to r31211Uoti Urpala2010-05-301-0/+4
|\| | | | | | | | | The merged cache2.c changes are known to have problems. Will merge further fixes to them before merging this to the master branch.
| * Avoid decoding of 0-size packets. This also fixes that the main loop believesreimar2010-05-231-0/+4
| | | | | | | | | | | | | | | | tehre is an infinite number of delayed frames, thus never finishing (happens with -demuxer lavf -vc theora). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31206 b3059339-0415-0410-9bf9-f77b7e298cf2
| * cosmetics: reformat ad_pcm.c in K&R stylediego2010-05-231-90/+93
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31193 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Merge svn change r31191Uoti Urpala2010-05-301-3/+4
|\|
| * Ignore (but print out) offset with libtheora decoder.cehoyos2010-05-221-3/+4
| | | | | | | | | | | | | | Patch by Giorgio Vazzana, mywing81 gmail git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31191 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Merge svn changes up to r31189Uoti Urpala2010-05-302-7/+11
|\|
| * Fix compilation broken by FFmpeg-r23201 that changed the api of error logging.iive2010-05-202-7/+11
| | | | | | | | | | | | | | | | | | Also fix evaluation after FFmpeg-r23149 "change order of parameters". Let the filters fail if evaluation can't be done. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31187 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Merge svn changes up to r31176Uoti Urpala2010-05-302-103/+0
|\|
| * Fix compilation after r31173.cehoyos2010-05-141-2/+0
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31174 b3059339-0415-0410-9bf9-f77b7e298cf2
| * remove vf_yuy2, functionality is replaced by -vf format=yuv2siretart2010-05-141-100/+0
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31173 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Merge svn changes up to r31169Uoti Urpala2010-05-301-16/+0
|\|
| * Remove internal liba52 copy.diego2010-05-091-16/+0
| | | | | | | | | | | | | | Nowadays FFmpeg is faster than liba52 and external liba52 is well supported. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31147 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Merge svn changes up to r31145Uoti Urpala2010-05-302-3/+7
|\|
| * Handle Y8/Y800 formats more similar to other YUV formats.reimar2010-05-092-3/+7
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31144 b3059339-0415-0410-9bf9-f77b7e298cf2
* | cosmetics: "struct vf_instance* vf" -> "struct vf_instance *vf"Uoti Urpala2010-05-2986-362/+366
| | | | | | | | | | | | | | Change 'struct vf_instance' pointer arguments to more standard style as in the subject. Also some other minor formatting fixes. Patch by Diego Biurrun.
* | ad_pcm: don't rely on demux packets staying validUoti Urpala2010-05-151-9/+23
| | | | | | | | | | | | | | | | | | Change ad_pcm to copy input packet data into an internal buffer instead of relying on the packet still existing at the next decode() call. The extra memcpy could be avoided by improving the demuxer API a bit but I don't feel like implementing that now. Also add a ADCTRL_RESYNC_STREAM handler to drop buffered data from previous stream position.
* | ad_pcm: fix crash at EOFUoti Urpala2010-05-151-1/+1
| | | | | | | | | | | | | | Fix use of unsigned type where negative values were needed. When playing a file with multichannel PCM audio the bug could result in the channel reorder function scrambling memory at the end of playback, causing a crash.
* | cosmetics: reindent ad_pcm.cUoti Urpala2010-05-151-117/+120
| |
* | vd_ffmpeg: remove #ifdef for old FFmpeg-mt versionsUoti Urpala2010-05-071-6/+0
| | | | | | | | | | The #ifdef is obsolete since trying to compile against the relevant old versions will fail for other reasons.
* | Merge svn changes up to r31141Uoti Urpala2010-05-078-3/+38
|\|
| * Add support for 12-bit color mode on framebuffer devices.cehoyos2010-05-068-3/+38
| | | | | | | | | | | | | | Patch Janusz Krzysztofik, jkrzyszt A tis icnet pl git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31139 b3059339-0415-0410-9bf9-f77b7e298cf2
| * Cosmetics/indentation fixes.reimar2010-04-201-4/+5
| | | | |