[Title] Update AVPacket structure and remove warning message of compile.
authorkt920.kim <kt920.kim@samsung.com>
Tue, 17 Jan 2012 07:11:55 +0000 (16:11 +0900)
committerkt920.kim <kt920.kim@samsung.com>
Tue, 17 Jan 2012 07:11:55 +0000 (16:11 +0900)
[Type]
[Module] kernel / codec
[Priority]
[CQ#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

Change-Id: I7bc29017858acdd90930e0e7f842a16fd95d411d

drivers/samsung/avcodec.h
drivers/samsung/emul_codec.c

index a4264bee3456a9bdf7f47e26e912aff9a78fb122..005d2d5ca27de6004953a52555c32e07043d7d2a 100644 (file)
@@ -999,6 +999,7 @@ typedef struct AVPacket {
     void  (*destruct)(struct AVPacket *);
     void  *priv;
     int64_t pos;                            ///< byte position in stream, -1 if unknown
+       int is_mux;
 
     /**
      * Time difference in AVStream->time_base units from the pts of this
index bbfbc102a61d9f98f1b218c8e04798f48f14d45f..182317176c3829a5f5ede05abe58288af6824bdc 100644 (file)
@@ -254,7 +254,8 @@ static ssize_t svcodec_write (struct file *file, const char __user *buf,
        } 
 
        // return value
-       writel(paramInfo.ret, svcodec->ioaddr + CODEC_RETURN_VALUE);
+       if (paramInfo.ret != 0)
+               writel((uint32_t)paramInfo.ret, svcodec->ioaddr + CODEC_RETURN_VALUE);
 
        // api index    
        writel((uint32_t)paramInfo.apiIndex, svcodec->ioaddr + CODEC_API_INDEX);