From 8ab9eb5fa95a913a1a4ff9a773d0073b17b481f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Mon, 4 Feb 2008 13:12:09 +0000 Subject: ext/mpeg2enc/gstmpeg2encpicturereader.cc: Fix compilation with libmjpegtools 1.8.x. Original commit message from CVS: * ext/mpeg2enc/gstmpeg2encpicturereader.cc: (GstMpeg2EncPictureReader.StreamPictureParams): Fix compilation with libmjpegtools 1.8.x. --- ChangeLog | 6 ++++++ ext/mpeg2enc/gstmpeg2encpicturereader.cc | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/ChangeLog b/ChangeLog index b2cfdf79..25ea91c1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-02-04 Tim-Philipp Müller + + * ext/mpeg2enc/gstmpeg2encpicturereader.cc: + (GstMpeg2EncPictureReader.StreamPictureParams): + Fix compilation with libmjpegtools 1.8.x. + 2008-02-04 Sebastian Dröge * ext/ladspa/gstsignalprocessor.c: diff --git a/ext/mpeg2enc/gstmpeg2encpicturereader.cc b/ext/mpeg2enc/gstmpeg2encpicturereader.cc index 7b6cfbb7..35b599dd 100644 --- a/ext/mpeg2enc/gstmpeg2encpicturereader.cc +++ b/ext/mpeg2enc/gstmpeg2encpicturereader.cc @@ -97,9 +97,15 @@ GstMpeg2EncPictureReader::StreamPictureParams (MPEG2EncInVidParams & strm) strm.aspect_ratio_code = mpeg_guess_mpeg_aspect_code (2, par, strm.horizontal_size, strm.vertical_size); + +#ifdef GST_MJPEGTOOLS_19x GST_DEBUG_OBJECT (element, "Guessing aspect ratio code for PAR %d/%d " "MPEG version %d yielded: %d", par.n, par.d, mpeg_version, strm.aspect_ratio_code); +#else + GST_DEBUG_OBJECT (element, "Guessing aspect ratio code for PAR %d/%d " + "yielded: %d", par.n, par.d, strm.aspect_ratio_code); +#endif } /* -- cgit v1.2.1