Browse Source

examples/decode_audio: flush the decoder

tags/n3.4
Anton Khirnov 8 years ago
parent
commit
fee0f1de2c
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      doc/examples/decode_audio.c

+ 5
- 0
doc/examples/decode_audio.c View File

@@ -179,6 +179,11 @@ int main(int argc, char **argv)
}
}

/* flush the decoder */
pkt->data = NULL;
pkt->size = 0;
decode(c, pkt, decoded_frame, outfile);

fclose(outfile);
fclose(f);



Loading…
Cancel
Save