Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
size_t data_size;
AVPacket *pkt;
AVFrame *decoded_frame = NULL;
+ enum AVSampleFormat sfmt;
+ int n_channels = 0;
+ const char *fmt;
if (argc <= 2) {
fprintf(stderr, "Usage: %s <input file> <output file>\n", argv[0]);
decode(c, pkt, decoded_frame, outfile);
/* print output pcm infomations, because there have no metadata of pcm */
- enum AVSampleFormat sfmt = c->sample_fmt;
- int n_channels = 0;
- const char *fmt;
+ sfmt = c->sample_fmt;
if (av_sample_fmt_is_planar(sfmt)) {
const char *packed = av_get_sample_fmt_name(sfmt);