summaryrefslogtreecommitdiffstats
path: root/libhb/hb.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2011-06-07 21:27:02 +0000
committerjstebbins <[email protected]>2011-06-07 21:27:02 +0000
commitd40287132815adc74a0d1444a1e7b76e89879f69 (patch)
tree00c95f36cbe47104a7ad40233c93bc588702251f /libhb/hb.c
parente07dec1ec259a52a893642da14856e16085f3c36 (diff)
libhb: add support for libav aac encoder (libhb only)
This generalizes the ac3 encoder to make it easy to add support for any audio encoder that libav supports. Since ffaac is not quite ready, the cli and gui does not expose ffaac yet. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4029 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/hb.c')
-rw-r--r--libhb/hb.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/libhb/hb.c b/libhb/hb.c
index a4761a867..1e3686cf2 100644
--- a/libhb/hb.c
+++ b/libhb/hb.c
@@ -262,6 +262,9 @@ void hb_ff_set_sample_fmt(AVCodecContext *context, AVCodec *codec)
break;
}
}
+ if ( *fmt == -1 )
+ context->sample_fmt = codec->sample_fmts[0];
+
}
}
@@ -415,7 +418,7 @@ hb_handle_t * hb_init( int verbose, int update_check )
hb_register( &hb_encca_aac );
hb_register( &hb_encca_haac );
#endif
- hb_register( &hb_encac3 );
+ hb_register( &hb_encavcodeca );
return h;
}
@@ -517,7 +520,7 @@ hb_handle_t * hb_init_dl( int verbose, int update_check )
hb_register( &hb_encca_aac );
hb_register( &hb_encca_haac );
#endif
- hb_register( &hb_encac3 );
+ hb_register( &hb_encavcodeca );
return h;
}