mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
[MOVED FROM BAD 080/134] vp8dec: add check if we have legal aspect-ratio before reset it.
the commit f9b552f049
(vp8dec: set par to 1/1)
will fix situation where no aspect-ratio is set, but it brake
stream with available aspect-ratio. This patch fix it.
Fixes: #652902.
Signed-off-by: Alexey Fisher <bug-track@fisher-privat.net>
This commit is contained in:
parent
e46f4318f7
commit
293d378289
1 changed files with 4 additions and 2 deletions
|
@ -405,8 +405,10 @@ gst_vp8_dec_handle_frame (GstBaseVideoDecoder * decoder, GstVideoFrame * frame)
|
||||||
state->width = stream_info.w;
|
state->width = stream_info.w;
|
||||||
state->height = stream_info.h;
|
state->height = stream_info.h;
|
||||||
state->format = GST_VIDEO_FORMAT_I420;
|
state->format = GST_VIDEO_FORMAT_I420;
|
||||||
state->par_n = 1;
|
if (state->par_n == 0 || state->par_d == 0) {
|
||||||
state->par_d = 1;
|
state->par_n = 1;
|
||||||
|
state->par_d = 1;
|
||||||
|
}
|
||||||
gst_vp8_dec_send_tags (dec);
|
gst_vp8_dec_send_tags (dec);
|
||||||
gst_base_video_decoder_set_src_caps (decoder);
|
gst_base_video_decoder_set_src_caps (decoder);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue