On Mon, Dec 19, 2011 at 16:06, Janne Grunau <[email protected]> wrote:
> On 2011-12-17 14:42:10 +0100, Luca Barbato wrote:
>> Do not assume the audio packets being always smaller than
>> DEFAULT_PES_PAYLOAD_SIZE.

In addition, the following does nothing but introducing a buffer overflow:

-    if (ts_st->payload_size + size > DEFAULT_PES_PAYLOAD_SIZE) {
+    if (ts_st->payload_size > DEFAULT_PES_PAYLOAD_SIZE) {

-- 
Jindřich Makovička
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to