]> granicus.if.org Git - libvpx/commitdiff
Prevent VP8 encoding crash
authorYaowu Xu <yaowu@google.com>
Sat, 7 Feb 2015 00:32:20 +0000 (16:32 -0800)
committerYaowu Xu <yaowu@google.com>
Sat, 7 Feb 2015 00:32:48 +0000 (16:32 -0800)
This commit changes the value of highbitdepth flag to avoid conflict
with vp8 refresh_last_frame flag.

Change-Id: Idcff2cf44f0a200bd935b326f785c0cf32d7228a

vpx_scale/yv12config.h

index 6cdc235fe9b9fe2d33ab1d21c6e437b92a05cd95..76cf771c74a2256daf897adec33e9646432329f1 100644 (file)
@@ -61,7 +61,7 @@ typedef struct yv12_buffer_config {
   int flags;
 } YV12_BUFFER_CONFIG;
 
-#define YV12_FLAG_HIGHBITDEPTH 1
+#define YV12_FLAG_HIGHBITDEPTH 8
 
 int vp8_yv12_alloc_frame_buffer(YV12_BUFFER_CONFIG *ybf,
                                 int width, int height, int border);