Commit 0df8d78a authored by Stephan Krempel's avatar Stephan Krempel Committed by Laurent Aimar

Preserve offsets set by demuxer

* In function vout_new_buffer offsets that are set in
  p_dec->p_owner->video could get lost before.

* Fixes problem with matroska clipping feature (#4600)
Modified-by: default avatarLaurent Aimar <fenrir@videolan.org>
Signed-off-by: default avatarLaurent Aimar <fenrir@videolan.org>
parent f321630f
...@@ -2352,11 +2352,15 @@ static picture_t *vout_new_buffer( decoder_t *p_dec ) ...@@ -2352,11 +2352,15 @@ static picture_t *vout_new_buffer( decoder_t *p_dec )
{ {
fmt.i_visible_width = p_dec->fmt_in.video.i_visible_width; fmt.i_visible_width = p_dec->fmt_in.video.i_visible_width;
fmt.i_visible_height = p_dec->fmt_in.video.i_visible_height; fmt.i_visible_height = p_dec->fmt_in.video.i_visible_height;
fmt.i_x_offset = p_dec->fmt_in.video.i_x_offset;
fmt.i_y_offset = p_dec->fmt_in.video.i_y_offset;
} }
else else
{ {
fmt.i_visible_width = fmt.i_width; fmt.i_visible_width = fmt.i_width;
fmt.i_visible_height = fmt.i_height; fmt.i_visible_height = fmt.i_height;
fmt.i_x_offset = 0;
fmt.i_y_offset = 0;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment