mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-08 21:28:45 +00:00
qtdemux: also calculate PAR using track width and height for QT files
(... as opposed to only for ISO style files). Fixes #624173.
This commit is contained in:
parent
16b57b49c9
commit
65fdbe68ec
1 changed files with 14 additions and 17 deletions
|
@ -3969,9 +3969,7 @@ gst_qtdemux_add_stream (GstQTDemux * qtdemux,
|
||||||
"height", G_TYPE_INT, stream->height,
|
"height", G_TYPE_INT, stream->height,
|
||||||
"framerate", GST_TYPE_FRACTION, stream->fps_n, stream->fps_d, NULL);
|
"framerate", GST_TYPE_FRACTION, stream->fps_n, stream->fps_d, NULL);
|
||||||
|
|
||||||
/* iso files:
|
/* calculate pixel-aspect-ratio using display width and height */
|
||||||
* calculate pixel-aspect-ratio using display width and height */
|
|
||||||
if (qtdemux->major_brand != FOURCC_qt__) {
|
|
||||||
GST_DEBUG_OBJECT (qtdemux,
|
GST_DEBUG_OBJECT (qtdemux,
|
||||||
"video size %dx%d, target display size %dx%d", stream->width,
|
"video size %dx%d, target display size %dx%d", stream->width,
|
||||||
stream->height, stream->display_width, stream->display_height);
|
stream->height, stream->display_width, stream->display_height);
|
||||||
|
@ -3989,7 +3987,6 @@ gst_qtdemux_add_stream (GstQTDemux * qtdemux,
|
||||||
GST_TYPE_FRACTION, n, d, NULL);
|
GST_TYPE_FRACTION, n, d, NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/* qt file might have pasp atom */
|
/* qt file might have pasp atom */
|
||||||
if (stream->par_w > 0 && stream->par_h > 0) {
|
if (stream->par_w > 0 && stream->par_h > 0) {
|
||||||
|
|
Loading…
Reference in a new issue