GstVC1SeqStructC * const structc = &seq_hdr->struct_c;
GstVC1ParserResult result;
GstVaapiProfile profile;
- guint width, height, fps_n, fps_d;
+ guint width, height, fps_n, fps_d, par_n, par_d;
result = gst_vc1_parse_sequence_header(
rbdu->data + rbdu->offset,
fps_n = 0;
fps_d = 0;
+ par_n = 0;
+ par_d = 0;
switch (seq_hdr->profile) {
case GST_VC1_PROFILE_SIMPLE:
case GST_VC1_PROFILE_MAIN:
fps_d = frameratedr_table[adv_hdr->frameratedr];
}
}
+ par_n = adv_hdr->par_n;
+ par_d = adv_hdr->par_d;
break;
default:
g_assert(0 && "XXX: we already validated the profile above");
gst_vaapi_decoder_set_framerate(base_decoder, priv->fps_n, priv->fps_d);
}
+ if (par_n > 0 && par_d > 0)
+ gst_vaapi_decoder_set_pixel_aspect_ratio(base_decoder, par_n, par_d);
+
switch (seq_hdr->profile) {
case GST_VC1_PROFILE_SIMPLE:
case GST_VC1_PROFILE_MAIN: