Hi, Currently I'm working on a program based on libav and SDL. Sometimes my program will fail at SDL_OpenAudio.
I checked ffplay.c -- I called SDL_OpenAudio exactly the same way as it did. But however, there's still something different. I made the test with a movie with 6 audio channels. In ffplay.c, after calling avcodec_open() to open the audio codec context, AVCodecContext.channels will be changed from 6 to 2. But in mine, it would not. And it seems that that is the only difference. Why? I read source code of avcodec_open() roughly, but did not found any piece of code related to that. wecing.
_______________________________________________ libav-api mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-api
