summaryrefslogtreecommitdiff
path: root/multimedia/dvbcut/files/patch-psfile.cpp
blob: 822a4193d31d42779f5cef8deff442fd491aaf6f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- src/psfile.cpp~	2007-04-13 19:36:27.000000000 +0200
+++ src/psfile.cpp	2007-08-19 11:51:11.554951537 +0200
@@ -19,7 +19,9 @@
 #include "psfile.h"
 #include "streamhandle.h"
 #include "stream.h"
+extern "C" {
-#include <ffmpeg/avcodec.h>
+#include <ffmpeg/allcodecs.h>
+}
 
 psfile::psfile(const std::string &filename, inbuffer &b, int initial_offset)
     : mpgfile(filename, b, initial_offset)
@@ -100,7 +102,7 @@
       streamnumber[sid]=audiostream(audiostreams);
       stream *S=&s[audiostream(audiostreams++)];
       S->id=sid;
-      S->dec=&ac3_decoder;
+      S->dec=&liba52_decoder;
       S->type=streamtype::ac3audio;
       if (audiostreams>=MAXAUDIOSTREAMS)
         break;