Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
5edf8ee9
Commit
5edf8ee9
authored
Apr 25, 2014
by
Vittorio Giovara
Committed by
Tristan Matthews
Apr 25, 2014
Browse files
Options
Downloads
Patches
Plain Diff
video_decoder: use LIBAVUTIL_VERSION_CHECK to check libavutil features
Refs: #46175 Change-Id: I42a7f87f5c9250723a828536552c4b5bb5c69f83
parent
9d125a5e
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
daemon/src/video/libav_deps.h
+1
-1
1 addition, 1 deletion
daemon/src/video/libav_deps.h
daemon/src/video/video_decoder.cpp
+1
-1
1 addition, 1 deletion
daemon/src/video/video_decoder.cpp
with
2 additions
and
2 deletions
daemon/src/video/libav_deps.h
+
1
−
1
View file @
5edf8ee9
...
@@ -63,7 +63,7 @@ extern "C" {
...
@@ -63,7 +63,7 @@ extern "C" {
#include
<libavdevice/avdevice.h>
#include
<libavdevice/avdevice.h>
#include
<libswscale/swscale.h>
#include
<libswscale/swscale.h>
#include
<libavutil/avutil.h>
#include
<libavutil/avutil.h>
#if LIBAV
FORMAT
_VERSION_CHECK(5
4
,
6
, 0, 60, 100)
#if LIBAV
UTIL
_VERSION_CHECK(5
1
,
33
, 0, 60, 100)
#include
<libavutil/time.h>
#include
<libavutil/time.h>
#endif
#endif
#include
<libavutil/pixdesc.h>
#include
<libavutil/pixdesc.h>
...
...
This diff is collapsed.
Click to expand it.
daemon/src/video/video_decoder.cpp
+
1
−
1
View file @
5edf8ee9
...
@@ -185,7 +185,7 @@ int VideoDecoder::decode(VideoFrame& result)
...
@@ -185,7 +185,7 @@ int VideoDecoder::decode(VideoFrame& result)
const
int64_t
pts
=
av_rescale
(
lastDts_
,
1000000
,
AV_TIME_BASE
);
const
int64_t
pts
=
av_rescale
(
lastDts_
,
1000000
,
AV_TIME_BASE
);
const
int64_t
now
=
av_gettime
()
-
startTime_
;
const
int64_t
now
=
av_gettime
()
-
startTime_
;
if
(
pts
>
now
)
{
if
(
pts
>
now
)
{
#if LIBAV
FORMAT
_VERSION_CHECK(5
4
,
6
, 0, 6
0
, 100)
#if LIBAV
UTIL
_VERSION_CHECK(5
1
,
34
, 0, 6
1
, 100)
av_usleep
(
10000
);
av_usleep
(
10000
);
#else
#else
usleep
(
10000
);
usleep
(
10000
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment