summaryrefslogtreecommitdiff
path: root/libavformat/rmenc.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2016-07-30 13:51:23 +0200
committerDiego Biurrun <diego@biurrun.de>2016-08-17 12:16:42 +0200
commitd9442d13033a24b14ebae149dcdb42709430e2d9 (patch)
tree37aab203e392d6326e8d5121cd8f4857f5eeaf65 /libavformat/rmenc.c
parentdab2034b8679aaacd8aef832cdeb71d0ee8a3358 (diff)
rm: Drop broken disabled cruft
Diffstat (limited to 'libavformat/rmenc.c')
-rw-r--r--libavformat/rmenc.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/libavformat/rmenc.c b/libavformat/rmenc.c
index 8499e6384c..59118c9484 100644
--- a/libavformat/rmenc.c
+++ b/libavformat/rmenc.c
@@ -389,7 +389,6 @@ static int rm_write_video(AVFormatContext *s, const uint8_t *buf, int size, int
/* Well, I spent some time finding the meaning of these bits. I am
not sure I understood everything, but it works !! */
-#if 1
if (size > MAX_PACKET_SIZE) {
avpriv_report_missing_feature(s, "Muxing packets larger than 64 kB");
return AVERROR(ENOSYS);
@@ -411,13 +410,6 @@ static int rm_write_video(AVFormatContext *s, const uint8_t *buf, int size, int
avio_wb16(pb, 0x4000 | size); /* total frame size */
avio_wb16(pb, 0x4000 | size); /* offset from the start or the end */
}
-#else
- /* full frame */
- write_packet_header(s, size + 6);
- avio_w8(pb, 0xc0);
- avio_wb16(pb, 0x4000 + size); /* total frame size */
- avio_wb16(pb, 0x4000 + packet_number * 126); /* position in stream */
-#endif
avio_w8(pb, stream->nb_frames & 0xff);
avio_write(pb, buf, size);