Message ID | CALvomiMFezjUBwZCZndySCXqNYhvh6_ngFri7K8E6s+AVKXi-A@mail.gmail.com |
---|---|
State | New |
Headers | show |
On Fri, May 12, 2017 at 19:13:21 +0000, Rob Meyers wrote:
> Attaching the output of "git diff -p".
That will work, but
$ git format-patch --signoff
is recommended:
https://ffmpeg.org/developer.html#Submitting-patches
Your method lost the commit message (which was incorrectly worded
anyway ;-)).
Moritz
On 5/13/2017 6:00 PM, Moritz Barsnick wrote: > On Fri, May 12, 2017 at 19:13:21 +0000, Rob Meyers wrote: >> Attaching the output of "git diff -p". > > That will work, but > $ git format-patch --signoff > is recommended: > https://ffmpeg.org/developer.html#Submitting-patches git format-patch is a minimum. git send-email is encouraged/recommended. > > Your method lost the commit message (which was incorrectly worded > anyway ;-)). > > Moritz > _______________________________________________ > ffmpeg-devel mailing list > ffmpeg-devel@ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-devel >
diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c index 0a7c39eacd..4e04cb79e0 100644 --- a/libavformat/aviobuf.c +++ b/libavformat/aviobuf.c @@ -519,9 +519,7 @@ void avio_write_marker(AVIOContext *s, int64_t time, enum AVIODataMarkerType typ static void fill_buffer(AVIOContext *s) { - int max_buffer_size = s->max_packet_size ? - s->max_packet_size : IO_BUFFER_SIZE; - uint8_t *dst = s->buf_end - s->buffer + max_buffer_size < s->buffer_size ? + uint8_t *dst = !s->max_packet_size && s->buf_end - s->buffer < s->buffer_size ? s->buf_end : s->buffer; int len = s->buffer_size - (dst - s->buffer);