oanastratulat

Untitled

Jan 3rd, 2012
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1.  
  2. ea->sample_rate = ea->big_endian ? avio_rb32(pb) : avio_rl32(pb);
  3. ea->bytes = avio_r8(pb); /* 1=8-bit, 2=16-bit */
  4. if(ea->bytes == 0){
  5. av_log(s,AV_LOG_ERROR,"the file is corrupted, ea->bytes = 0\n");
  6. return AVERROR_INVALIDDATA;
  7. }
  8. ea->num_channels = avio_r8(pb);
Advertisement
Add Comment
Please, Sign In to add comment