Fixed unsuppoted jpeg decoder exception code submit/tizen_2.1/20130515.031651
authorJungYumin <y_m.jung@samsung.com>
Tue, 14 May 2013 04:56:24 +0000 (13:56 +0900)
committerJungYumin <y_m.jung@samsung.com>
Tue, 14 May 2013 04:56:24 +0000 (13:56 +0900)
Change-Id: I5273d9151b6ffcd94f768095250d5e6325bae394
Signed-off-by: JungYumin <y_m.jung@samsung.com>
src/FMedia_JpegDecoder.cpp

index 6474f19..db4ee53 100644 (file)
@@ -159,6 +159,9 @@ _JpegDecoder::DecodeN(int& length)
        byte* outBuf = null;
        result r = E_SUCCESS;
 
+       SysTryCatch(NID_MEDIA, !setjmp(__pJmp), r = E_INVALID_DATA, E_INVALID_DATA,
+                          "[E_INVALID_DATA] error jump");
+
        // Set decoding option
        if (__pDec->jpeg_color_space == JCS_GRAYSCALE)
        {