On Sep 11, 2013 9:54 PM, "Diego Biurrun" <[email protected]> wrote:
>
> On Wed, Sep 11, 2013 at 08:19:05PM +0200, vladimir wrote:
> > --- a/libavformat/asfenc.c
> > +++ b/libavformat/asfenc.c
> > @@ -533,6 +535,7 @@ static int asf_write_header1(AVFormatContext *s,
int64_t file_size,
> >
> > /* movie chunk, followed by packets of packet_size */
> > asf->data_offset = cur_pos;
> > +av_log(s, AV_LOG_ERROR, "data_offset: %d\r\n", asf->data_offset );
> > put_guid(pb, &ff_asf_data_header);
> > avio_wl64(pb, data_chunk_size);
> > put_guid(pb, &ff_asf_my_guid);
>
> stray change?
I have a heart for strays
> > @@ -555,10 +558,10 @@ static int asf_write_header(AVFormatContext *s)
> >
> > - /* the data-chunk-size has to be 50, which is data_size -
asf->data_offset
> > - * at the moment this function is done. It is needed to use asf as
> > - * streamable format. */
> > - if (asf_write_header1(s, 0, 50) < 0) {
> > + /* the data-chunk-size has to be 50(DATA_HEADER_SIZE), which is
> > + * data_size - asf->data_offset at the moment this function is
done.
> > + * It is needed to use asf as a streamable format. */
> > + if (asf_write_header1(s, 0, DATA_HEADER_SIZE) < 0) {
>
> nit: 50 (DATA_HEADER_SIZE)
>
> Diego
> _______________________________________________
> libav-devel mailing list
> [email protected]
> https://lists.libav.org/mailman/listinfo/libav-devel
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel