Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
d9442d13
Commit
d9442d13
authored
Jul 30, 2016
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rm: Drop broken disabled cruft
parent
dab2034b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
21 deletions
+0
-21
rmdec.c
libavformat/rmdec.c
+0
-13
rmenc.c
libavformat/rmenc.c
+0
-8
No files found.
libavformat/rmdec.c
View file @
d9442d13
...
...
@@ -785,19 +785,6 @@ ff_rm_parse_packet (AVFormatContext *s, AVIOContext *pb,
pkt
->
stream_index
=
st
->
index
;
#if 0
if (st->codecpar->codec_type == AVMEDIA_TYPE_VIDEO) {
if(st->codecpar->codec_id == AV_CODEC_ID_RV20){
int seq= 128*(pkt->data[2]&0x7F) + (pkt->data[3]>>1);
av_log(s, AV_LOG_DEBUG, "%d %"PRId64" %d\n", *timestamp, *timestamp*512LL/25, seq);
seq |= (timestamp&~0x3FFF);
if(seq - timestamp > 0x2000) seq -= 0x4000;
if(seq - timestamp < -0x2000) seq += 0x4000;
}
}
#endif
pkt
->
pts
=
timestamp
;
if
(
flags
&
2
)
pkt
->
flags
|=
AV_PKT_FLAG_KEY
;
...
...
libavformat/rmenc.c
View file @
d9442d13
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment