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
30b1961c
Commit
30b1961c
authored
Apr 19, 2012
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mark a number of variables only used in av_dlog() calls as av_unused.
This fixes a number of unused-but-set gcc warnings.
parent
b2e92e94
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
5 deletions
+9
-5
wmalosslessdec.c
libavcodec/wmalosslessdec.c
+2
-1
mov.c
libavformat/mov.c
+4
-2
nsvdec.c
libavformat/nsvdec.c
+3
-2
No files found.
libavcodec/wmalosslessdec.c
View file @
30b1961c
...
@@ -22,6 +22,7 @@
...
@@ -22,6 +22,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
*/
#include "libavutil/attributes.h"
#include "avcodec.h"
#include "avcodec.h"
#include "internal.h"
#include "internal.h"
#include "get_bits.h"
#include "get_bits.h"
...
@@ -1041,7 +1042,7 @@ static int decode_frame(WmallDecodeCtx *s)
...
@@ -1041,7 +1042,7 @@ static int decode_frame(WmallDecodeCtx *s)
/* no idea what these are for, might be the number of samples
/* no idea what these are for, might be the number of samples
that need to be skipped at the beginning or end of a stream */
that need to be skipped at the beginning or end of a stream */
if
(
get_bits1
(
gb
))
{
if
(
get_bits1
(
gb
))
{
int
skip
;
int
av_unused
skip
;
/* usually true for the first frame */
/* usually true for the first frame */
if
(
get_bits1
(
gb
))
{
if
(
get_bits1
(
gb
))
{
...
...
libavformat/mov.c
View file @
30b1961c
...
@@ -25,6 +25,7 @@
...
@@ -25,6 +25,7 @@
//#define DEBUG
//#define DEBUG
//#define MOV_EXPORT_ALL_METADATA
//#define MOV_EXPORT_ALL_METADATA
#include "libavutil/attributes.h"
#include "libavutil/audioconvert.h"
#include "libavutil/audioconvert.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/intfloat.h"
#include "libavutil/intfloat.h"
...
@@ -596,8 +597,9 @@ static int mov_read_dec3(MOVContext *c, AVIOContext *pb, MOVAtom atom)
...
@@ -596,8 +597,9 @@ static int mov_read_dec3(MOVContext *c, AVIOContext *pb, MOVAtom atom)
static
int
mov_read_chan
(
MOVContext
*
c
,
AVIOContext
*
pb
,
MOVAtom
atom
)
static
int
mov_read_chan
(
MOVContext
*
c
,
AVIOContext
*
pb
,
MOVAtom
atom
)
{
{
AVStream
*
st
;
AVStream
*
st
;
uint8_t
version
;
uint8_t
av_unused
version
;
uint32_t
flags
,
layout_tag
,
bitmap
,
num_descr
,
label_mask
;
uint32_t
av_unused
flags
;
uint32_t
layout_tag
,
bitmap
,
num_descr
,
label_mask
;
int
i
;
int
i
;
if
(
c
->
fc
->
nb_streams
<
1
)
if
(
c
->
fc
->
nb_streams
<
1
)
...
...
libavformat/nsvdec.c
View file @
30b1961c
...
@@ -19,6 +19,7 @@
...
@@ -19,6 +19,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
*/
#include "libavutil/attributes.h"
#include "libavutil/mathematics.h"
#include "libavutil/mathematics.h"
#include "avformat.h"
#include "avformat.h"
#include "internal.h"
#include "internal.h"
...
@@ -273,7 +274,7 @@ static int nsv_parse_NSVf_header(AVFormatContext *s)
...
@@ -273,7 +274,7 @@ static int nsv_parse_NSVf_header(AVFormatContext *s)
{
{
NSVContext
*
nsv
=
s
->
priv_data
;
NSVContext
*
nsv
=
s
->
priv_data
;
AVIOContext
*
pb
=
s
->
pb
;
AVIOContext
*
pb
=
s
->
pb
;
unsigned
int
file_size
;
unsigned
int
av_unused
file_size
;
unsigned
int
size
;
unsigned
int
size
;
int64_t
duration
;
int64_t
duration
;
int
strings_size
;
int
strings_size
;
...
@@ -595,7 +596,7 @@ null_chunk_retry:
...
@@ -595,7 +596,7 @@ null_chunk_retry:
av_dlog
(
s
,
"NSV CHUNK %d aux, %u bytes video, %d bytes audio
\n
"
,
auxcount
,
vsize
,
asize
);
av_dlog
(
s
,
"NSV CHUNK %d aux, %u bytes video, %d bytes audio
\n
"
,
auxcount
,
vsize
,
asize
);
/* skip aux stuff */
/* skip aux stuff */
for
(
i
=
0
;
i
<
auxcount
;
i
++
)
{
for
(
i
=
0
;
i
<
auxcount
;
i
++
)
{
uint32_t
auxtag
;
uint32_t
a
v_unused
a
uxtag
;
auxsize
=
avio_rl16
(
pb
);
auxsize
=
avio_rl16
(
pb
);
auxtag
=
avio_rl32
(
pb
);
auxtag
=
avio_rl32
(
pb
);
av_dlog
(
s
,
"NSV aux data: '%c%c%c%c', %d bytes
\n
"
,
av_dlog
(
s
,
"NSV aux data: '%c%c%c%c', %d bytes
\n
"
,
...
...
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