Skip to content

Commit

Permalink
Merge branch 'subversion'
Browse files Browse the repository at this point in the history
  • Loading branch information
jonsafari committed Jun 17, 2019
2 parents 0f3e48a + 59c893b commit 638e6b8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion decoder_plugins/ffmpeg/ffmpeg.c
Original file line number Diff line number Diff line change
Expand Up @@ -1190,7 +1190,7 @@ static bool seek_in_stream (struct ffmpeg_data *data, int sec)
data->stream->time_base.num);

if (data->stream->start_time != (int64_t)AV_NOPTS_VALUE) {
if (seek_ts > INT64_MAX - data->stream->start_time) {
if (seek_ts > INT64_MAX - MAX(0, data->stream->start_time)) {
logit ("Seek value too large");
return false;
}
Expand Down
8 changes: 6 additions & 2 deletions interface_elements.c
Original file line number Diff line number Diff line change
Expand Up @@ -3896,6 +3896,10 @@ void iface_get_key (struct iface_key *k)
if (ch == (wint_t)ERR)
interface_fatal ("wgetch() failed!");

/* Handle keypad ENTER as newline. */
if (ch == KEY_ENTER)
ch = '\n';

if (ch < 32 && ch != '\n' && ch != '\t' && ch != KEY_ESCAPE) {
/* Unprintable, generally control sequences */
k->type = IFACE_KEY_FUNCTION;
Expand Down Expand Up @@ -4132,10 +4136,10 @@ void iface_error (const char *msg)
/* Handle screen resizing. */
void iface_resize ()
{
check_term_size (&main_win, &info_win);
validate_layouts ();
endwin ();
refresh ();
check_term_size (&main_win, &info_win);
validate_layouts ();
main_win_resize (&main_win);
info_win_resize (&info_win);
iface_refresh_screen ();
Expand Down
2 changes: 1 addition & 1 deletion mocp.1
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ before they are processed.
.B MOCP_POPTRC
A colon-separated list of POPT configuration files which will be loaded in
sequence by MOC during initialisation. If the variable is unset then the
default POPT configuration file will be used. If the variable is set but
default POPT configuration file will be used. If the variable is set but
empty then no POPT configuration file will be loaded. If the variable is
set then those files which exist will be loaded and those which don't will
be skipped.
Expand Down

0 comments on commit 638e6b8

Please sign in to comment.