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
ade9960f
Commit
ade9960f
authored
Nov 05, 2012
by
Piotr Bandurski
Committed by
Michael Niedermayer
Nov 18, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avrndec: support lowres for mjpeg
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
e8fed4d3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
avrndec.c
libavcodec/avrndec.c
+6
-0
No files found.
libavcodec/avrndec.c
View file @
ade9960f
...
...
@@ -38,6 +38,11 @@ static av_cold int init(AVCodecContext *avctx)
// Support "Resolution 1:1" for Avid AVI Codec
a
->
is_mjpeg
=
avctx
->
extradata_size
<
31
||
memcmp
(
&
avctx
->
extradata
[
28
],
"1:1"
,
3
);
if
(
!
a
->
is_mjpeg
&&
avctx
->
lowres
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"lowres is not possible with rawvideo
\n
"
);
return
AVERROR
(
EINVAL
);
}
if
(
a
->
is_mjpeg
)
return
ff_mjpeg_decode_init
(
avctx
);
...
...
@@ -129,5 +134,6 @@ AVCodec ff_avrn_decoder = {
.
decode
=
decode_frame
,
.
long_name
=
NULL_IF_CONFIG_SMALL
(
"Avid AVI Codec"
),
.
capabilities
=
CODEC_CAP_DR1
,
.
max_lowres
=
3
,
};
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