summaryrefslogtreecommitdiffstats
path: root/libmpcodecs
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-01-30 18:53:53 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-01-30 18:53:53 +0000
commitfa1176f6364f378def51089392107ceb4d78b0c9 (patch)
tree527d6f1e265113df07f26c00ea6de7a01afc0e47 /libmpcodecs
parent6e2e6cbb6a561a4944bef3da7b0c4411270fd2d6 (diff)
downloadmpv-fa1176f6364f378def51089392107ceb4d78b0c9.tar.bz2
mpv-fa1176f6364f378def51089392107ceb4d78b0c9.tar.xz
Simplify
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22079 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r--libmpcodecs/vd_lzo.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libmpcodecs/vd_lzo.c b/libmpcodecs/vd_lzo.c
index 47d4901441..e0ded4dbc6 100644
--- a/libmpcodecs/vd_lzo.c
+++ b/libmpcodecs/vd_lzo.c
@@ -108,12 +108,10 @@ static mp_image_t* decode(sh_video_t *sh,void* data,int len,int flags)
if (!init_done) {
- lzo_byte *tmp=NULL;
+ lzo_byte *tmp = lzo_malloc(sh->bih->biSizeImage);
// decompress one frame to see if its
// either YV12 or RGB24
- if (!tmp) tmp = lzo_malloc(sh->bih->biSizeImage);
-
mp_msg (MSGT_DECVIDEO, MSGL_V, "[%s] 2 depth %d, format %d data %p len (%d) (%d)\n",
MOD_NAME, sh->bih->biBitCount, sh->format, data, len, sh->bih->biSizeImage
);