Commit c4eec85a authored by Michael Niedermayer's avatar Michael Niedermayer

Revert "rmdec: Avoid allocating huge packets"

This reverts commit 66f71f3b.

This causes regressions with RDT.
parent ad8e3304
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
#include "libavutil/dict.h" #include "libavutil/dict.h"
#include "avformat.h" #include "avformat.h"
#include "internal.h" #include "internal.h"
#include "avio_internal.h"
#include "riff.h" #include "riff.h"
#include "rm.h" #include "rm.h"
...@@ -613,7 +612,6 @@ static int rm_assemble_video_frame(AVFormatContext *s, AVIOContext *pb, ...@@ -613,7 +612,6 @@ static int rm_assemble_video_frame(AVFormatContext *s, AVIOContext *pb,
} }
if(type != 1){ // not whole frame if(type != 1){ // not whole frame
len2 = get_num(pb, &len); len2 = get_num(pb, &len);
len2 = ffio_limit(pb, len2);
pos = get_num(pb, &len); pos = get_num(pb, &len);
pic_num = avio_r8(pb); len--; pic_num = avio_r8(pb); len--;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment