Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
7cdef77b
Commit
7cdef77b
authored
Aug 12, 2014
by
Christophe Gisquet
Committed by
Michael Niedermayer
Aug 14, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dpx: warn if encrypted
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
69849a2d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
dpx.c
libavcodec/dpx.c
+10
-0
No files found.
libavcodec/dpx.c
View file @
7cdef77b
...
...
@@ -108,6 +108,16 @@ static int decode_frame(AVCodecContext *avctx,
av_log
(
avctx
,
AV_LOG_ERROR
,
"Invalid data start offset
\n
"
);
return
AVERROR_INVALIDDATA
;
}
// Check encryption
buf
=
avpkt
->
data
+
660
;
ret
=
read32
(
&
buf
,
endian
);
if
(
ret
!=
0xFFFFFFFF
)
{
avpriv_report_missing_feature
(
avctx
,
"Encryption"
);
av_log
(
avctx
,
AV_LOG_WARNING
,
"The image is encrypted and may "
"not properly decode.
\n
"
);
}
// Need to end in 0x304 offset from start of file
buf
=
avpkt
->
data
+
0x304
;
w
=
read32
(
&
buf
,
endian
);
...
...
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