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:
Mark Nauwelaerts 2010-07-13 12:34:44 +02:00
parent 16b57b49c9
commit 65fdbe68ec

View file

@ -3969,9 +3969,7 @@ gst_qtdemux_add_stream (GstQTDemux * qtdemux,
"height", G_TYPE_INT, stream->height,
"framerate", GST_TYPE_FRACTION, stream->fps_n, stream->fps_d, NULL);
/* iso files:
* calculate pixel-aspect-ratio using display width and height */
if (qtdemux->major_brand != FOURCC_qt__) {
/* calculate pixel-aspect-ratio using display width and height */
GST_DEBUG_OBJECT (qtdemux,
"video size %dx%d, target display size %dx%d", stream->width,
stream->height, stream->display_width, stream->display_height);
@ -3989,7 +3987,6 @@ gst_qtdemux_add_stream (GstQTDemux * qtdemux,
GST_TYPE_FRACTION, n, d, NULL);
}
}
}
/* qt file might have pasp atom */
if (stream->par_w > 0 && stream->par_h > 0) {