Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
6f270da6
Commit
6f270da6
authored
11 years ago
by
Alexandra Khirnova
Committed by
Anton Khirnov
11 years ago
Browse files
Options
Downloads
Patches
Plain Diff
libschroedingerenc: do not assert on values from external libraries
Signed-off-by:
Anton Khirnov
<
anton@khirnov.net
>
parent
7671dd7c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libavcodec/libschroedingerenc.c
+2
-5
2 additions, 5 deletions
libavcodec/libschroedingerenc.c
with
2 additions
and
5 deletions
libavcodec/libschroedingerenc.c
+
2
−
5
View file @
6f270da6
...
...
@@ -27,9 +27,6 @@
* (http://dirac.sourceforge.net/specification.html).
*/
#undef NDEBUG
#include
<assert.h>
#include
<schroedinger/schro.h>
#include
<schroedinger/schrodebug.h>
#include
<schroedinger/schrovideoformat.h>
...
...
@@ -301,8 +298,8 @@ static int libschroedinger_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
case
SCHRO_STATE_HAVE_BUFFER
:
case
SCHRO_STATE_END_OF_STREAM
:
enc_buf
=
schro_encoder_pull
(
encoder
,
&
presentation_frame
);
assert
(
enc_buf
->
length
>
0
)
;
assert
(
enc_buf
->
length
<=
buf_size
)
;
if
(
enc_buf
->
length
<=
0
)
return
AVERROR_BUG
;
parse_code
=
enc_buf
->
data
[
4
];
/* All non-frame data is prepended to actual frame data to
...
...
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
register
or
sign in
to comment