summaryrefslogtreecommitdiff
path: root/multimedia/dvbcut/files/patch-tsfile.cpp
blob: 7f1366908076c68644ad22bccb258761e2917271 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- src/tsfile.cpp~	Fri Apr 13 19:36:27 2007
+++ src/tsfile.cpp	2007-07-17 01:12:25 +0200
@@ -22,7 +22,9 @@
 #include <list>
 #include <utility>
 
+extern "C" {
 #include <ffmpeg/avcodec.h>
+}
 
 tsfile::tsfile(const std::string &filename, inbuffer &b, int initial_offset)
     : mpgfile(filename, b, initial_offset)
@@ -78,7 +80,7 @@
     stream *S=&s[audiostream(audiostreams++)];
     S->id=it->second;
     if (it->first==0xbd) {
-      S->dec=&ac3_decoder;
+      S->dec=&liba52_decoder;
       S->enc=&ac3_encoder;
       S->type=streamtype::ac3audio;
       } else {