Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- samples = (short*)(as->aud_dec_sample + as->aud_dec_offset);
- ictx->sample_fmt = AV_SAMPLE_FMT_S16;
- if ((length = avcodec_decode_audio3(ictx, samples, &len, &packet)) <= 0) {
- tvhlog(LOG_ERR, "transcode", "Unable to decode audio (%d)", length);
- ts->ts_index = 0;
- goto cleanup;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement