summaryrefslogtreecommitdiff
path: root/src/libmpeg2/xine_decoder.c
diff options
context:
space:
mode:
authorMichael Roitzsch <mroi@users.sourceforge.net>2003-08-05 15:09:23 +0000
committerMichael Roitzsch <mroi@users.sourceforge.net>2003-08-05 15:09:23 +0000
commitf86f7a3a08809f55d0218312a8986c9693899245 (patch)
treefad730f45e4c0a697ddfe07cb1c55285065b191d /src/libmpeg2/xine_decoder.c
parent4b456d4e7062949eb1bbdf1b0708dff388b3f3f7 (diff)
downloadxine-lib-f86f7a3a08809f55d0218312a8986c9693899245.tar.gz
xine-lib-f86f7a3a08809f55d0218312a8986c9693899245.tar.bz2
handle dvdnav aspect force hints correctly with pan&scan
CVS patchset: 5250 CVS date: 2003/08/05 15:09:23
Diffstat (limited to 'src/libmpeg2/xine_decoder.c')
-rw-r--r--src/libmpeg2/xine_decoder.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/libmpeg2/xine_decoder.c b/src/libmpeg2/xine_decoder.c
index 073ed47e7..7b1313e85 100644
--- a/src/libmpeg2/xine_decoder.c
+++ b/src/libmpeg2/xine_decoder.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: xine_decoder.c,v 1.48 2003/08/04 03:47:09 miguelfreitas Exp $
+ * $Id: xine_decoder.c,v 1.49 2003/08/05 15:09:23 mroi Exp $
*
* stuff needed to turn libmpeg2 into a xine decoder plugin
*/
@@ -63,9 +63,11 @@ static void mpeg2dec_decode_data (video_decoder_t *this_gen, buf_element_t *buf)
if (buf->decoder_flags & BUF_FLAG_SPECIAL) {
if (buf->decoder_info[1] == BUF_SPECIAL_ASPECT) {
this->mpeg2.force_aspect = buf->decoder_info[2];
- if (buf->decoder_info[3] == 0x1 && buf->decoder_info[2] == XINE_VO_ASPECT_ANAMORPHIC)
- /* letterboxing is denied, we have to do pan&scan */
- this->mpeg2.force_aspect = XINE_VO_ASPECT_PAN_SCAN;
+ if (buf->decoder_info[3] == 0x1 && buf->decoder_info[2] == 3)
+ /* letterboxing is denied, we have to do pan&scan */
+ this->mpeg2.force_pan_scan = 1;
+ else
+ this->mpeg2.force_pan_scan = 0;
}
return;
}
@@ -137,7 +139,7 @@ static video_decoder_t *open_plugin (video_decoder_class_t *class_gen, xine_stre
mpeg2_init (&this->mpeg2);
stream->video_out->open(stream->video_out, stream);
- this->mpeg2.force_aspect = 0;
+ this->mpeg2.force_aspect = this->mpeg2.force_pan_scan = 0;
return &this->video_decoder;
}