]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/sparc/dsputil_vis.c
libstagefright: limit the output queue size
[ffmpeg] / libavcodec / sparc / dsputil_vis.c
index ab9258b2b9394d84bdfce9e6006e3c8673033d60..e45bfd28e611395e130183f12b50ab09f49683ce 100644 (file)
@@ -3953,10 +3953,11 @@ void dsputil_init_vis(DSPContext* c, AVCodecContext *avctx)
 {
   /* VIS-specific optimizations */
   int accel = vis_level ();
-  const int high_bit_depth = avctx->codec_id == CODEC_ID_H264 && avctx->bits_per_raw_sample > 8;
+  const int high_bit_depth = avctx->bits_per_raw_sample > 8;
 
   if (accel & ACCEL_SPARC_VIS) {
-      if(avctx->idct_algo==FF_IDCT_SIMPLEVIS){
+      if (avctx->bits_per_raw_sample <= 8 &&
+          avctx->idct_algo == FF_IDCT_SIMPLEVIS) {
           c->idct_put = ff_simple_idct_put_vis;
           c->idct_add = ff_simple_idct_add_vis;
           c->idct     = ff_simple_idct_vis;