diff --git a/docs/random/aspectratio b/docs/random/aspectratio index 0aabebf9a2..80e948daa8 100644 --- a/docs/random/aspectratio +++ b/docs/random/aspectratio @@ -37,7 +37,7 @@ DirectFB PAL TV output: 4) playing an NTSC vob on PAL TV -NTSC VOB: +NTSC VOB (4/3): - video size: 720x480 - pixel aspect ratio: 8/9 @@ -52,3 +52,13 @@ NTSC VOB: --> 720 x ( 720 * 4 / 5) = 720 x 576 + +5) other examples + - 720 x 480, 32/27 on a square display + -> intended DAR: DAR = 720/480 * 32/27 = 80/3 * 1/15 = 16/9 + + keeping w constant: + 720/h * 1/1 = 16/9 -> h = 720/16 * 9 = 45 * 9 = 405 + + keeping h constant: + w/480 * 1/1 = 16/9 -> w = 480 * 16 / 9 = 160 / 3 * 16 = 853.33 diff --git a/tests/check/gst/gstbus.c b/tests/check/gst/gstbus.c index ebe9fe1420..f78ec2dfc6 100644 --- a/tests/check/gst/gstbus.c +++ b/tests/check/gst/gstbus.c @@ -177,7 +177,10 @@ GST_START_TEST (test_watch) gst_object_unref ((GstObject *) test_bus); } -GST_END_TEST static gint messages_seen = 0; + +GST_END_TEST; + +static gint messages_seen = 0; static void message_func (GstBus * bus, GstMessage * message, gpointer data) @@ -224,7 +227,8 @@ GST_START_TEST (test_watch_with_poll) gst_object_unref (test_bus); } -GST_END_TEST Suite * gstbus_suite (void) +GST_END_TEST Suite * +gstbus_suite (void) { Suite *s = suite_create ("GstBus"); TCase *tc_chain = tcase_create ("stresstest");