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
f62880bf
Commit
f62880bf
authored
Apr 03, 2015
by
Andreas Cadhalpun
Committed by
Michael Niedermayer
Apr 04, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpeg4: use a self-explanatory #define MAX_NVOP_SIZE
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
241913c0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
h263dec.c
libavcodec/h263dec.c
+1
-1
mpeg4video.h
libavcodec/mpeg4video.h
+3
-0
No files found.
libavcodec/h263dec.c
View file @
f62880bf
...
...
@@ -459,7 +459,7 @@ retry:
}
}
if
(
s
->
bitstream_buffer_size
&&
(
s
->
divx_packed
||
buf_size
<
20
))
// divx 5.01+/xvid frame reorder
if
(
s
->
bitstream_buffer_size
&&
(
s
->
divx_packed
||
buf_size
<
=
MAX_NVOP_SIZE
))
// divx 5.01+/xvid frame reorder
ret
=
init_get_bits8
(
&
s
->
gb
,
s
->
bitstream_buffer
,
s
->
bitstream_buffer_size
);
else
...
...
libavcodec/mpeg4video.h
View file @
f62880bf
...
...
@@ -59,6 +59,9 @@
#define VISUAL_OBJ_STARTCODE 0x1B5
#define VOP_STARTCODE 0x1B6
/* smaller packets likely don't contain a real frame */
#define MAX_NVOP_SIZE 19
typedef
struct
Mpeg4DecContext
{
MpegEncContext
m
;
...
...
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