diff options
author | wm4 <wm4@nowhere> | 2017-01-23 15:28:12 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-01-23 15:28:12 +0100 |
commit | 3e89e061c25e32195677a2c7a239b512cdd3cca9 (patch) | |
tree | 522e316fd1648cdd1f3ec45f77a7626501ee5d0f /sub/dec_sub.h | |
parent | 5c942128d80b358e53239d56d90cb1b3189a1243 (diff) | |
download | mpv-3e89e061c25e32195677a2c7a239b512cdd3cca9.tar.bz2 mpv-3e89e061c25e32195677a2c7a239b512cdd3cca9.tar.xz |
sd_lavc: remove old broken heuristic
This core of this heuristic was once copied from MPlayer's spudec.c. I
think it was meant for the case when the resolution field was missing or
so.
I couldn't find a file for which this actually does something. On the
other hand, there are samples which actually have a smaller resolution
than 720x576, and which are broken by this old hack.
For subtitles that set no resolution (I'm not sure which codec/container
that would be), there's still the fallback on video resolution.
Just get rid of this hack. Also cleanup a bit. SD_CTRL_GET_RESOLUTION
hasn't been used since DVD menu removal. get_resolution() is left with 1
call site, and would be quite awkward to keep, so un-inline it.
Diffstat (limited to 'sub/dec_sub.h')
-rw-r--r-- | sub/dec_sub.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sub/dec_sub.h b/sub/dec_sub.h index 341966a430..bdf6e35492 100644 --- a/sub/dec_sub.h +++ b/sub/dec_sub.h @@ -16,7 +16,6 @@ struct sd; enum sd_ctrl { SD_CTRL_SUB_STEP, SD_CTRL_SET_VIDEO_PARAMS, - SD_CTRL_GET_RESOLUTION, SD_CTRL_SET_TOP, SD_CTRL_SET_VIDEO_DEF_FPS, SD_CTRL_UPDATE_SPEED, |