On 24/09/14 16:48, Omer Osman wrote:

+    if (s->drc_boost != -1){
+        if (aacDecoder_SetParam(s->handle, AAC_DRC_BOOST_FACTOR, s->drc_boost) 
!= AAC_DEC_OK){
+            av_log(avctx, AV_LOG_ERROR, "Unable to set DRC boost factor in the 
decoder\n");
+            return AVERROR_UNKNOWN;
+        }
+    }
+
+    if (s->drc_cut != -1){
+        if (aacDecoder_SetParam(s->handle, AAC_DRC_ATTENUATION_FACTOR, 
s->drc_cut) != AAC_DEC_OK){
+            av_log(avctx, AV_LOG_ERROR, "Unable to set DRC attenuation factor in 
the decoder\n");
+            return AVERROR_UNKNOWN;
+        }
+    }
+
+    if (s->drc_level != -1){
+        if (aacDecoder_SetParam(s->handle, AAC_DRC_REFERENCE_LEVEL, 
s->drc_level) != AAC_DEC_OK){
+            av_log(avctx, AV_LOG_ERROR, "Unable to set DRC reference level in the 
decoder\n");
+            return AVERROR_UNKNOWN;
+        }
+    }
+
+    if (s->drc_heavy != -1){
+        if (aacDecoder_SetParam(s->handle, AAC_DRC_HEAVY_COMPRESSION, 
s->drc_heavy) != AAC_DEC_OK){
+            av_log(avctx, AV_LOG_ERROR, "Unable to set DRC heavy compression in the 
decoder\n");
+            return AVERROR_UNKNOWN;
+        }
+    }
+

Seems fine maybe AVERROR(ENOSYS) for those return values.

lu

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to