Advertisement
Guest User

Untitled

a guest
Jun 6th, 2017
505
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
IO 1.17 KB | None | 0 0
  1. andoni@andoni-desktop:~/gst/head/gst-plugins-good (master)$ git show
  2. commit ed01d3c07647254b2f722a743b162e6bcd93fca7
  3. Author: Andoni Morales Alastruey <amorales@flumotion.com>
  4. Date:   Mon Jul 26 13:38:31 2010 +0200
  5.  
  6.     qtdemux: set the pixel-aspect-ratio field also for par=1/1
  7.  
  8. diff --git a/gst/qtdemux/qtdemux.c b/gst/qtdemux/qtdemux.c
  9. index 63d9aca..4ab565c 100644
  10. --- a/gst/qtdemux/qtdemux.c
  11. +++ b/gst/qtdemux/qtdemux.c
  12. @@ -3981,11 +3981,11 @@ gst_qtdemux_add_stream (GstQTDemux * qtdemux,
  13.          /* calculate the pixel aspect ratio using the display and pixel w/h */
  14.          n = stream->display_width * stream->height;
  15.          d = stream->display_height * stream->width;
  16. -        if (n != d) {
  17. -          GST_DEBUG_OBJECT (qtdemux, "setting PAR to %d/%d", n, d);
  18. -          gst_caps_set_simple (stream->caps, "pixel-aspect-ratio",
  19. -              GST_TYPE_FRACTION, n, d, NULL);
  20. -        }
  21. +        if (n == d)
  22. +          n = d = 1;
  23. +        GST_DEBUG_OBJECT (qtdemux, "setting PAR to %d/%d", n, d);
  24. +        gst_caps_set_simple (stream->caps, "pixel-aspect-ratio",
  25. +            GST_TYPE_FRACTION, n, d, NULL);
  26.        }
  27.  
  28.        /* qt file might have pasp atom */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement