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
e1cddd1a
Commit
e1cddd1a
authored
Sep 21, 2014
by
Thomas Volkert
Committed by
Michael Niedermayer
Sep 22, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rtpenc_h263_rfc2190: avoid misleading error output
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
f3aaec78
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
rtpenc_h263_rfc2190.c
libavformat/rtpenc_h263_rfc2190.c
+7
-8
No files found.
libavformat/rtpenc_h263_rfc2190.c
View file @
e1cddd1a
...
...
@@ -150,9 +150,12 @@ void ff_rtp_send_h263_rfc2190(AVFormatContext *s1, const uint8_t *buf, int size,
}
if
(
mb_info_pos
<
mb_info_count
)
{
const
uint8_t
*
ptr
=
&
mb_info
[
12
*
mb_info_pos
];
/* get position in bits in the input packet at which the next info block should be used */
uint32_t
bit_pos
=
AV_RL32
(
ptr
);
uint32_t
pos
=
(
bit_pos
+
7
)
/
8
;
if
(
pos
<=
end
-
buf_base
)
{
/* get position in bytes */
uint32_t
pos_next_mb_info
=
(
bit_pos
+
7
)
/
8
;
/* check if data from the next MB info block should be used */
if
(
pos_next_mb_info
<=
end
-
buf_base
)
{
state
.
quant
=
ptr
[
4
];
state
.
gobn
=
ptr
[
5
];
state
.
mba
=
AV_RL16
(
&
ptr
[
6
]);
...
...
@@ -160,13 +163,9 @@ void ff_rtp_send_h263_rfc2190(AVFormatContext *s1, const uint8_t *buf, int size,
state
.
vmv1
=
(
int8_t
)
ptr
[
9
];
state
.
hmv2
=
(
int8_t
)
ptr
[
10
];
state
.
vmv2
=
(
int8_t
)
ptr
[
11
];
ebits
=
8
*
pos
-
bit_pos
;
len
=
pos
-
(
buf
-
buf_base
);
ebits
=
8
*
pos
_next_mb_info
-
bit_pos
;
len
=
pos
_next_mb_info
-
(
buf
-
buf_base
);
mb_info_pos
++
;
}
else
{
av_log
(
s1
,
AV_LOG_ERROR
,
"Unable to split H263 packet, use -mb_info %d "
"or lower.
\n
"
,
s
->
max_payload_size
-
8
);
}
}
else
{
av_log
(
s1
,
AV_LOG_ERROR
,
"Unable to split H263 packet, "
...
...
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