summarylogtreecommitdiffstats
path: root/framealloc.patch
blob: e866dc0f5a339e2d14716778a435579eb9d1df86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
diff --git a/track.cpp b/track.cpp
index 041c7e9..52446a3 100644
--- a/track.cpp
+++ b/track.cpp
@@ -201,7 +201,7 @@ bool Codec::matchSample(unsigned char *start, int maxlength) {
 
 int Codec::getLength(unsigned char *start, int maxlength) {
 	if(name == "mp4a") {
-		AVFrame *frame = avcodec_alloc_frame();
+		AVFrame *frame = av_frame_alloc();
 		if(!frame)
 			throw string("Could not create AVFrame");
 		AVPacket avp;
@@ -217,7 +217,7 @@ int Codec::getLength(unsigned char *start, int maxlength) {
 	} else if(name == "mp4v") {
 
 		/*     THIS DOES NOT SEEM TO WORK FOR SOME UNKNOWN REASON. IT JUST CONSUMES ALL BYTES.
-  *     AVFrame *frame = avcodec_alloc_frame();
+  *     AVFrame *frame = av_frame_alloc();
 		if(!frame)
 			throw string("Could not create AVFrame");
 		AVPacket avp;