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
2d2b363c
Commit
2d2b363c
authored
Nov 29, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
h263: remove unused ff_h263_find_resync_marker()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
2d614e9b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
25 deletions
+0
-25
h263.h
libavcodec/h263.h
+0
-1
ituh263dec.c
libavcodec/ituh263dec.c
+0
-24
No files found.
libavcodec/h263.h
View file @
2d2b363c
...
...
@@ -120,7 +120,6 @@ int av_const h263_get_picture_format(int width, int height);
void
ff_clean_h263_qscales
(
MpegEncContext
*
s
);
int
ff_h263_resync
(
MpegEncContext
*
s
);
const
uint8_t
*
ff_h263_find_resync_marker
(
MpegEncContext
*
s
,
const
uint8_t
*
p
,
const
uint8_t
*
end
);
int
ff_h263_get_gob_height
(
MpegEncContext
*
s
);
void
ff_h263_encode_motion
(
MpegEncContext
*
s
,
int
val
,
int
f_code
);
...
...
libavcodec/ituh263dec.c
View file @
2d2b363c
...
...
@@ -199,30 +199,6 @@ static int h263_decode_gob_header(MpegEncContext *s)
return
0
;
}
/**
* Find the next resync_marker.
* @param p pointer to buffer to scan
* @param end pointer to the end of the buffer
* @return pointer to the next resync_marker, or end if none was found
*/
const
uint8_t
*
ff_h263_find_resync_marker
(
MpegEncContext
*
s
,
const
uint8_t
*
av_restrict
p
,
const
uint8_t
*
av_restrict
end
)
{
av_assert2
(
p
<
end
);
end
-=
2
;
p
++
;
if
(
s
->
resync_marker
){
int
prefix_len
=
ff_mpeg4_get_video_packet_prefix_length
(
s
);
for
(;
p
<
end
;
p
+=
2
){
if
(
!*
p
){
if
(
!
p
[
-
1
]
&&
((
p
[
1
]
>>
(
23
-
prefix_len
))
==
1
))
return
p
-
1
;
else
if
(
!
p
[
1
]
&&
((
p
[
2
]
>>
(
23
-
prefix_len
))
==
1
))
return
p
;
}
}
}
return
end
+
2
;
}
/**
* Decode the group of blocks / video packet header.
* @return bit position of the resync_marker, or <0 if none was found
...
...
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