8 Feb 15:39
[RFC][PATCH] libmpcodecs/ad_spdif.c check DTS profile
Naoya OYAMA <naoya.oyama <at> gmail.com>
2012-02-08 14:39:23 GMT
2012-02-08 14:39:23 GMT
Hi, Attached patch for ad_spdif. Improvement enumerated below was added. 1. A suitable value is set up for bitrate and channels and dtshd_rate. By useing DTS profile. 2. The code for creating lavc is diverted from ad_ffmpeg.c. 3. By creating lavc on ad_spdif.c, detection of bitrate and sample_rate became highly precise. Thanks.
Index: libmpcodecs/ad_spdif.c
===================================================================
--- libmpcodecs/ad_spdif.c (revision 34655)
+++ libmpcodecs/ad_spdif.c (working copy)
@@ -25,6 +25,9 @@
#include "libavformat/avformat.h"
#include "libavcodec/avcodec.h"
#include "libavutil/opt.h"
+#include "dec_audio.h"
+#include "help_mp.h"
+#include "libavutil/dict.h"
static const ad_info_t info = {
"libavformat/spdifenc audio pass-through decoder.",
@@ -39,11 +42,16 @@
#define FILENAME_SPDIFENC "spdif"
(Continue reading)
RSS Feed