]> git.pld-linux.org Git - packages/faad2.git/blame - faad2-mpeg4ip.patch
- gcc4 patch enabled.
[packages/faad2.git] / faad2-mpeg4ip.patch
CommitLineData
9370d89d
PS
1--- faad2/plugins/mpeg4ip/aa_file.cpp.orig 2006-01-25 21:44:44.000000000 +0100
2+++ faad2/plugins/mpeg4ip/aa_file.cpp 2006-01-25 22:29:06.103470750 +0100
3@@ -77,7 +77,7 @@
4
5 int aac_file_next_frame (codec_data_t *your,
6 uint8_t **buffer,
7- uint64_t *ts)
8+ frame_timestamp_t *ts)
9 {
10 aac_codec_t *aac = (aac_codec_t *)your;
11
12@@ -98,7 +98,7 @@
13 uint64_t calc;
14 calc = aac->m_framecount * 1024 * M_LLU;
15 calc /= aac->m_freq;
16- *ts = calc;
17+ ts->msec_timestamp = calc;
18 *buffer = aac->m_buffer;
19 aac->m_framecount++;
20 return (aac->m_buffer_size);
21--- faad2/plugins/mpeg4ip/faad2.h.orig 2004-01-05 15:05:12.000000000 +0100
22+++ faad2/plugins/mpeg4ip/faad2.h 2006-01-25 22:17:53.373427750 +0100
23@@ -81,7 +81,7 @@
24
25 int aac_file_next_frame(codec_data_t *ifptr,
26 uint8_t **buffer,
27- uint64_t *ts);
28+ frame_timestamp_t *ts);
29 int aac_file_eof(codec_data_t *ifptr);
30
31 void aac_file_used_for_frame(codec_data_t *ifptr,
32--- faad2/plugins/mpeg4ip/faad2.cpp.orig 2006-01-25 22:43:27.605311250 +0100
33+++ faad2/plugins/mpeg4ip/faad2.cpp 2006-01-25 22:27:24.273106750 +0100
34@@ -35,7 +35,9 @@
35 /*
36 * Create CAACodec class
37 */
38-static codec_data_t *aac_codec_create (const char *compressor,
39+static codec_data_t *aac_codec_create (
40+ const char* /*stream_type*/,
41+ const char* /*compressor*/,
42 int type,
43 int profile,
44 format_list_t *media_fmt,
45@@ -148,7 +150,7 @@
46 * Decode task call for FAAC
47 */
48 static int aac_decode (codec_data_t *ptr,
49- uint64_t ts,
50+ frame_timestamp_t* ts,
51 int from_rtp,
52 int *sync_frame,
53 uint8_t *buffer,
54@@ -163,15 +165,15 @@
55 if (aac->m_record_sync_time) {
56 aac->m_current_frame = 0;
57 aac->m_record_sync_time = 0;
58- aac->m_current_time = ts;
59- aac->m_last_rtp_ts = ts;
60+ aac->m_current_time = ts->msec_timestamp;
61+ aac->m_last_rtp_ts = ts->msec_timestamp;
62 } else {
63- if (aac->m_last_rtp_ts == ts) {
64+ if (aac->m_last_rtp_ts == ts->msec_timestamp) {
65 aac->m_current_time += aac->m_msec_per_frame;
66 aac->m_current_frame++;
67 } else {
68- aac->m_last_rtp_ts = ts;
69- aac->m_current_time = ts;
70+ aac->m_last_rtp_ts = ts->msec_timestamp;
71+ aac->m_current_time = ts->msec_timestamp;
72 aac->m_current_frame = 0;
73 }
74
75@@ -237,9 +239,9 @@
8d5bd20d 76 aac->m_vft->audio_configure(aac->m_ifptr,
77 aac->m_freq,
78 aac->m_chans,
79- AUDIO_S16SYS,
9370d89d 80+ AUDIO_FMT_S16,
8d5bd20d 81 aac->m_output_frame_size);
9370d89d
PS
82- uint8_t *now = aac->m_vft->audio_get_buffer(aac->m_ifptr);
83+ uint8_t *now = aac->m_vft->audio_get_buffer(aac->m_ifptr, aac->m_freq, aac->m_current_time);
84 aac->m_audio_inited = 1;
85 }
86 /*
87@@ -281,6 +283,7 @@
88 };
89
90 static int aac_codec_check (lib_message_func_t message,
91+ const char *stream_type,
92 const char *compressor,
93 int type,
94 int profile,
95@@ -322,7 +325,7 @@
96 }
97 if (userdata != NULL) {
98 mpeg4_audio_config_t audio_config;
99- decode_mpeg4_audio_config(userdata, userdata_size, &audio_config);
100+ decode_mpeg4_audio_config(userdata, userdata_size, &audio_config, false);
101 message(LOG_DEBUG, "aac", "audio type is %d", audio_config.audio_object_type);
102 if (fmtp != NULL) free_fmtp_parse(fmtp);
8d5bd20d 103
This page took 0.068057 seconds and 4 git commands to generate.