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
d75190aa
Commit
d75190aa
authored
Dec 09, 2014
by
Vittorio Giovara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpegvideo: move REBASE_PICTURE where it is used
Drop an unused #undef from h264 decoder.
parent
63fcedcf
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
h264_slice.c
libavcodec/h264_slice.c
+1
-1
mpegvideo.c
libavcodec/mpegvideo.c
+5
-0
mpegvideo.h
libavcodec/mpegvideo.h
+0
-5
No files found.
libavcodec/h264_slice.c
View file @
d75190aa
...
...
@@ -422,7 +422,7 @@ static void clone_tables(H264Context *dst, H264Context *src, int i)
}
#define IN_RANGE(a, b, size) (((a) >= (b)) && ((a) < ((b) + (size))))
#undef REBASE_PICTURE
#define REBASE_PICTURE(pic, new_ctx, old_ctx) \
((pic && pic >= old_ctx->DPB && \
pic < old_ctx->DPB + H264_MAX_PICTURE_COUNT) ? \
...
...
libavcodec/mpegvideo.c
View file @
d75190aa
...
...
@@ -961,6 +961,11 @@ do {\
UPDATE_PICTURE
(
last_picture
);
UPDATE_PICTURE
(
next_picture
);
#define REBASE_PICTURE(pic, new_ctx, old_ctx) \
((pic && pic >= old_ctx->picture && \
pic < old_ctx->picture + MAX_PICTURE_COUNT) ? \
&new_ctx->picture[pic - old_ctx->picture] : NULL)
s
->
last_picture_ptr
=
REBASE_PICTURE
(
s1
->
last_picture_ptr
,
s
,
s1
);
s
->
current_picture_ptr
=
REBASE_PICTURE
(
s1
->
current_picture_ptr
,
s
,
s1
);
s
->
next_picture_ptr
=
REBASE_PICTURE
(
s1
->
next_picture_ptr
,
s
,
s1
);
...
...
libavcodec/mpegvideo.h
View file @
d75190aa
...
...
@@ -659,11 +659,6 @@ typedef struct MpegEncContext {
AVFrame
*
tmp_frames
[
MAX_B_FRAMES
+
2
];
}
MpegEncContext
;
#define REBASE_PICTURE(pic, new_ctx, old_ctx) \
((pic && pic >= old_ctx->picture && \
pic < old_ctx->picture + MAX_PICTURE_COUNT) ? \
&new_ctx->picture[pic - old_ctx->picture] : NULL)
/* mpegvideo_enc common options */
#define FF_MPV_FLAG_SKIP_RD 0x0001
#define FF_MPV_FLAG_STRICT_GOP 0x0002
...
...
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