Browse Source

mock: set the RGB mask after setting the chroma

The chroma is set by the user, it may be one of the RGB with a mask chromas.
And the user can't specify a mask, so later is will be assumed to be using
these masks.
pull/162/head
Steve Lhomme 3 years ago
committed by Felix Paul Kühne
parent
commit
0f417e58ac
  1. 1
      modules/demux/mock.c

1
modules/demux/mock.c

@ -660,6 +660,7 @@ ConfigureVideoTrack(demux_t *demux,
fmt->i_codec = chroma;
fmt->video.i_chroma = chroma;
video_format_FixRgb( &fmt->video );
fmt->video.i_width = fmt->video.i_visible_width = options->width;
fmt->video.i_height = fmt->video.i_visible_height = options->height;
fmt->video.i_frame_rate = options->frame_rate;

Loading…
Cancel
Save