Advertisement
Guest User

Untitled

a guest
Mar 21st, 2014
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. samples = (short*)(as->aud_dec_sample + as->aud_dec_offset);
  2.  
  3. ictx->sample_fmt = AV_SAMPLE_FMT_S16;
  4.  
  5. if ((length = avcodec_decode_audio3(ictx, samples, &len, &packet)) <= 0) {
  6. tvhlog(LOG_ERR, "transcode", "Unable to decode audio (%d)", length);
  7. ts->ts_index = 0;
  8. goto cleanup;
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement