Hi Qinfan, Thank you very much for your hints!
I monitored the sending frames and the receiving frames, and they are the same. In fact, at the server end, I generate frames one by one, and encode it, then send it. Therefore, at the client end, they must be received one frame by one frame. So I think i don't have "incomplete frame" issue. Sincerely, On Fri, Mar 23, 2012 at 1:39 AM, 吴沁凡 <[email protected]> wrote: > The incoming data received by the client can be an incomplete frame (or > may be more than one frame, since the data is not organized as the same as > you wrote at server end), so you can not decode it directly. > Use function av_parser_parse2() first to get complete frame one by one > from the incoming data. > > for usage of av_parse_parse2(), please refer to avcodec.h > Here is my code for decoding. I also tried a lot, since the examples in > ffmpeg only tell about decode complete frames. >
_______________________________________________ Libav-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/libav-user
