OSDN Git Service

Merge remote-tracking branch 'qatar/master'
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 15 Jul 2013 12:08:06 +0000 (14:08 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 15 Jul 2013 12:08:06 +0000 (14:08 +0200)
* qatar/master:
  indeo: Reject impossible FRAMETYPE_NULL

Conflicts:
libavcodec/ivi_common.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
1  2 
libavcodec/ivi_common.c

@@@ -988,10 -958,15 +988,18 @@@ int ff_ivi_decode_frame(AVCodecContext 
                  }
              }
          }
 +        ctx->buf_invalid[ctx->dst_buf] = 0;
+     } else {
+         if (ctx->is_scalable)
+             return AVERROR_INVALIDDATA;
+         for (p = 0; p < 3; p++) {
+             if (!ctx->planes[p].bands[0].buf)
+                 return AVERROR_INVALIDDATA;
+         }
      }
 +    if (ctx->buf_invalid[ctx->dst_buf])
 +        return -1;
  
      //STOP_TIMER("decode_planes"); }