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
2634af57
Commit
2634af57
authored
Jul 26, 2013
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avdevice/fbdev: use AV_OPT_TYPE_VIDEO_RATE
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
0addc828
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
8 deletions
+1
-8
fbdev.c
libavdevice/fbdev.c
+1
-8
No files found.
libavdevice/fbdev.c
View file @
2634af57
...
...
@@ -80,7 +80,6 @@ typedef struct {
AVClass
*
class
;
///< class for private options
int
frame_size
;
///< size in bytes of a grabbed frame
AVRational
framerate_q
;
///< framerate
char
*
framerate
;
///< framerate string set by a private option
int64_t
time_frame
;
///< time for the next frame to output (in 1/1000000 units)
int
fd
;
///< framebuffer device file descriptor
...
...
@@ -101,12 +100,6 @@ static av_cold int fbdev_read_header(AVFormatContext *avctx)
enum
AVPixelFormat
pix_fmt
;
int
ret
,
flags
=
O_RDONLY
;
ret
=
av_parse_video_rate
(
&
fbdev
->
framerate_q
,
fbdev
->
framerate
);
if
(
ret
<
0
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"Could not parse framerate '%s'.
\n
"
,
fbdev
->
framerate
);
return
ret
;
}
if
(
!
(
st
=
avformat_new_stream
(
avctx
,
NULL
)))
return
AVERROR
(
ENOMEM
);
avpriv_set_pts_info
(
st
,
64
,
1
,
1000000
);
/* 64 bits pts in microseconds */
...
...
@@ -246,7 +239,7 @@ static av_cold int fbdev_read_close(AVFormatContext *avctx)
#define OFFSET(x) offsetof(FBDevContext, x)
#define DEC AV_OPT_FLAG_DECODING_PARAM
static
const
AVOption
options
[]
=
{
{
"framerate"
,
""
,
OFFSET
(
framerate
),
AV_OPT_TYPE_STRING
,
{.
str
=
"25"
},
0
,
0
,
DEC
},
{
"framerate"
,
""
,
OFFSET
(
framerate
_q
),
AV_OPT_TYPE_VIDEO_RATE
,
{.
str
=
"25"
},
0
,
0
,
DEC
},
{
NULL
},
};
...
...
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