FFmpeg git repo
Go to file
Oliver Fromme a32dcaaaf8 avcodec/dvdsubenc: Add dvdsub workaround for some players
The issue affects dvdsub subtitles (a.k.a. VOBSUB).

Some players -- in particular hardware players -- cut off
the lowest row of pixels if the number of rows in the subtitle
is odd.

The patch below implements a work-around for that.  If the
number of rows is odd, it is simply rounded up to an even
number, adding an invisible (i.e. fully transparent) row.
The work-around can be enabled or disabled with a new
option -even_rows_fix.  The default is disabled, so there
is no change of behaviour for users who don't care about it.

The overhead for the fix is low, and in many cases even zero:
For subtitles with an odd number of rows (i.e. in 50% of
cases on average), the size increases by two bytes because
a fully transparent row is encoded as 0x00 0x00.  However,
in the VOBSUB standard, all data packets are padded to 2KB
anyway, so in most cases the additional bytes just use some
part of the padding, so there is no overhead.  Only in the
rare case that the 2KB boundary is hit (0.1% chance), a full
2KB block is added.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-07-09 20:11:36 +02:00
compat
doc doc: add doxygen target tag 2014-07-08 02:11:19 +02:00
libavcodec avcodec/dvdsubenc: Add dvdsub workaround for some players 2014-07-09 20:11:36 +02:00
libavdevice avdevice/pulse_audio_dec: reimplement using the non simple API 2014-07-09 01:36:01 +02:00
libavfilter Merge commit 'd3cfd7aff86ee3d449ca68aba21d67b9b2136a9b' 2014-07-08 13:48:26 +02:00
libavformat avformat/m4vdec: raise threshold slightly for detection 2014-07-09 17:02:34 +02:00
libavresample
libavutil avutil/bprint:ædd io.h, try to fix msvc build 2014-07-09 18:16:45 +02:00
libpostproc
libswresample swresample: misc. doxy improvements 2014-07-08 01:36:56 +02:00
libswscale
presets
tests avcodec/roqvideo: use JPEG color range 2014-07-06 23:34:58 +02:00
tools tools/yuvcmp: add HAVE_UNISTD_H around #include <unistd.h> 2014-07-08 01:56:33 +02:00
.gitignore
arch.mak
Changelog avformat: Add image3 demuxers with format autodetection 2014-07-03 18:14:06 +02:00
cmdutils_common_opts.h
cmdutils_opencl.c
cmdutils.c
cmdutils.h
common.mak
configure Merge commit 'a9aee08d900f686e966c64afec5d88a7d9d130a3' 2014-07-08 03:19:06 +02:00
COPYING.GPLv2
COPYING.GPLv3
COPYING.LGPLv2.1
COPYING.LGPLv3
CREDITS
ffmpeg_dxva2.c
ffmpeg_filter.c
ffmpeg_opt.c
ffmpeg_vda.c
ffmpeg_vdpau.c
ffmpeg.c ffmpeg: check av_opt_set_dict() return 2014-07-02 05:53:13 +02:00
ffmpeg.h
ffplay.c
ffprobe.c
ffserver.c ffserver: add HAVE_UNISTD_H around #include <unistd.h> 2014-07-08 01:56:53 +02:00
INSTALL.md
library.mak
LICENSE.md
MAINTAINERS
Makefile
README.md
RELEASE
version.sh

FFmpeg README

  1. Documentation

  1. Licensing

  • See the LICENSE file.
  1. Build and Install

  • See the INSTALL file.