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
c43a96fe
Commit
c43a96fe
authored
Mar 16, 2017
by
Vittorio Giovara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc: Drop deprecated time_base variable for decoding
Deprecated in 10/2015.
parent
48bb0da0
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
18 deletions
+0
-18
decode.c
libavcodec/decode.c
+0
-5
mpegvideo_parser.c
libavcodec/mpegvideo_parser.c
+0
-5
utils.c
libavcodec/utils.c
+0
-5
version.h
libavcodec/version.h
+0
-3
No files found.
libavcodec/decode.c
View file @
c43a96fe
...
...
@@ -354,11 +354,6 @@ static int decode_simple_internal(AVCodecContext *avctx, AVFrame *frame)
if
(
ret
>=
0
&&
avctx
->
codec
->
type
==
AVMEDIA_TYPE_VIDEO
)
ret
=
pkt
->
size
;
#if FF_API_AVCTX_TIMEBASE
if
(
avctx
->
framerate
.
num
>
0
&&
avctx
->
framerate
.
den
>
0
)
avctx
->
time_base
=
av_inv_q
(
avctx
->
framerate
);
#endif
if
(
avctx
->
internal
->
draining
&&
!
got_frame
)
avci
->
draining_done
=
1
;
...
...
libavcodec/mpegvideo_parser.c
View file @
c43a96fe
...
...
@@ -163,11 +163,6 @@ static void mpegvideo_extract_headers(AVCodecParserContext *s,
s
->
coded_width
=
FFALIGN
(
pc
->
width
,
16
);
s
->
coded_height
=
FFALIGN
(
pc
->
height
,
16
);
}
#if FF_API_AVCTX_TIMEBASE
if
(
avctx
->
framerate
.
num
)
avctx
->
time_base
=
av_inv_q
(
avctx
->
framerate
);
#endif
}
static
int
mpegvideo_parse
(
AVCodecParserContext
*
s
,
...
...
libavcodec/utils.c
View file @
c43a96fe
...
...
@@ -663,11 +663,6 @@ FF_ENABLE_DEPRECATION_WARNINGS
ret
=
AVERROR
(
EINVAL
);
goto
free_and_end
;
}
#if FF_API_AVCTX_TIMEBASE
if
(
avctx
->
framerate
.
num
>
0
&&
avctx
->
framerate
.
den
>
0
)
avctx
->
time_base
=
av_inv_q
(
avctx
->
framerate
);
#endif
}
end:
if
(
!
(
codec
->
caps_internal
&
FF_CODEC_CAP_INIT_THREADSAFE
)
&&
codec
->
init
)
{
...
...
libavcodec/version.h
View file @
c43a96fe
...
...
@@ -47,9 +47,6 @@
* the public API and may change, break or disappear at any time.
*/
#ifndef FF_API_AVCTX_TIMEBASE
#define FF_API_AVCTX_TIMEBASE (LIBAVCODEC_VERSION_MAJOR < 58)
#endif
#ifndef FF_API_MPV_OPT
#define FF_API_MPV_OPT (LIBAVCODEC_VERSION_MAJOR < 58)
#endif
...
...
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