Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* read frames from the file */
- while (av_read_frame(fmt_ctx, &pkt) >= 0) {
- //decode_packet(&got_frame, 0);
- if (audio_stream_idx == pkt.stream_index)
- printf("Frame found!\n");
- else
- continue;
- fwrite(pkt.data, 1, pkt.size, audio_dst_file);
- }
Advertisement
Add Comment
Please, Sign In to add comment