pkgsrc/multimedia/mplayer-share/patches/patch-mplayer.c
nia 98f9a30446 mplayer: Update to 1.4
pkgsrc changes:

* Set autosync = 30 by default to fix choppy video with NetBSD's new
  audio system.
* Remove PulseAudio and legacy sound servers (nas, esd) as defaults.
  Consistent with mpv.
* Add an alsa option and enable it by default on Linux.
* Disable all codecs by default and just use ffmpeg instead.
  Allows distribution restrictions based on patents to be removed.
  Tested with a variety of common file formats.
  Consistent with other packages (e.g. FreeBSD Ports).
  While here, upgrade to ffmpeg4.

Upstream changes:

  1.4: "SubCounter" April 18, 2019

    Decoders, demuxers, streams:
    * More pixel formats are supported for VP9, RSCC, Screenpresso
    * pvr:// support for the Hauppauge HD PVR model 1212
    * Speed up detection of mpg format while streaming (limit probe to 4 MB)
    * demuxer: fall back to audio pts if all others are unavailable (#1928)
    * raw video: add support for < 8bpp RGB, support for paletted raw video,
      fix fliped raw video in non-avi containers
    * increase -lavdopts threads limit to 32
    * warn for badly interleaved files, and make -ni more aggressive
    * support GBR pixel formats for HEVC
    * FFmpeg audio decoders: g721, g732
    * FFmpeg video decoders: more Matrox mpeg2 formats (M702-3-4-5), Truemotion
      RT, Matrox Uncompressed SD/HD, BitJazz SheerVideo, YUY2 Lossless Codec
      Apple Pixlet, ScreenPressor, FM Screen Capture Codec
    * FFmpeg IFF video/image decoders: ANIM, ILBM, PBM, RGB8, RGBN

    Fixes:
    * fix more issues reported by Coverity
    * expand error checking, and fix many memleaks
    * fix -subcp enca: with external ASS subtitles (#2281)
    * fix reading of bitmap fonts
    * fix -subdelay applied inverted
    * some fixes for video filter bmovl (#2304, #2308)
    * fix timing of first and last frame (#2315)

    Other:
    * MPlayer can link against OpenSSL instead of GnuTLS for https support
      (Warning: the resulting binary can not be redistributed)
    * OSD: NV12/NV21 support
    * video output xv: NV12/NV21 support
    * video outputs for OSX: fix a few issues with newer OSX versions

    GUI:
    * No limitation on the number of entries in a font description file
    * Dramatic speedup of scanning font description files
    * Playback improvements for cue sheet playlists
    * Implementation of audio playback utilizing ReplayGain data
    * New symbol character 'g' and new dynamic label variable $g
    * Skins can leave current volume unchanged at startup
    * New configuration file: gui.gain
    * Modern new icons for the (default) menu, the file selector,
      the playlist and the message boxes
    * Rearrangement of some items of the (default) menu
    * Fix of broken evLoadAudioFile, evLoadSubtitle and evDropSubtitle
    * Skin support for 8-bit PNGs with palette
2019-06-04 13:39:38 +00:00

22 lines
623 B
C

$NetBSD: patch-mplayer.c,v 1.1 2019/06/04 13:39:38 nia Exp $
NetBSD implements no "perfect audio delay measurement"
(suggested to be required by mplayer's man page).
This allows video to be played at full speed without perfect
audio delay measurement.
--- mplayer.c.orig 2018-06-10 15:53:58.000000000 +0000
+++ mplayer.c
@@ -213,7 +213,11 @@ static int loop_seek;
static m_time_size_t end_at = { .type = END_AT_NONE, .pos = 0 };
// A/V sync:
+#ifdef __NetBSD__
+int autosync = 30;
+#else
int autosync; // 30 might be a good default value.
+#endif
// may be changed by GUI: (FIXME!)
float rel_seek_secs;