summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReinhard Nißl <rnissl@gmx.de>2007-10-01 23:32:39 +0200
committerReinhard Nißl <rnissl@gmx.de>2007-10-01 23:32:39 +0200
commit8f0d2fdb0a1921cc0eee8aa03f4620501ba33a53 (patch)
tree4ec523f6af70bd36873aef30086604757f39c674
parentc61244d24f43b13d75f73ff70c4421a14210ac13 (diff)
downloadxine-lib-8f0d2fdb0a1921cc0eee8aa03f4620501ba33a53.tar.gz
xine-lib-8f0d2fdb0a1921cc0eee8aa03f4620501ba33a53.tar.bz2
Revert cheating invalid frame sizes after fixed frame allocation.
These cheats where hiding a frame allocation bug in FFmpeg decoder which was previously fixed.
-rw-r--r--src/video_out/video_out_xv.c5
-rw-r--r--src/video_out/video_out_xxmc.c5
2 files changed, 0 insertions, 10 deletions
diff --git a/src/video_out/video_out_xv.c b/src/video_out/video_out_xv.c
index 4c3db95a6..b20a28c84 100644
--- a/src/video_out/video_out_xv.c
+++ b/src/video_out/video_out_xv.c
@@ -257,11 +257,6 @@ static XvImage *create_ximage (xv_driver_t *this, XShmSegmentInfo *shminfo,
unsigned int xv_format;
XvImage *image = NULL;
- if (width <= 0)
- width = 1;
- if (height <= 0)
- height = 1;
-
if (this->use_pitch_alignment) {
lprintf ("use_pitch_alignment old width=%d",width);
width = (width + 7) & ~0x7;
diff --git a/src/video_out/video_out_xxmc.c b/src/video_out/video_out_xxmc.c
index 0ba004127..5dd3cb118 100644
--- a/src/video_out/video_out_xxmc.c
+++ b/src/video_out/video_out_xxmc.c
@@ -608,11 +608,6 @@ static XvImage *create_ximage (xxmc_driver_t *this, XShmSegmentInfo *shminfo,
unsigned int xv_format;
XvImage *image = NULL;
- if (width <= 0)
- width = 1;
- if (height <= 0)
- height = 1;
-
if (this->use_pitch_alignment) {
width = (width + 7) & ~0x7;
}