[Ffmpeg-devel] [PATCH] asf seek back at end of file after rewriting header

Måns Rullgård mans
Sat Apr 14 00:19:20 CEST 2007


Baptiste Coudurier <baptiste.coudurier at smartjog.com> writes:

> Hi
>
> $subj.
>
> Index: libavformat/asf-enc.c
> ===================================================================
> --- libavformat/asf-enc.c	(revision 8727)
> +++ libavformat/asf-enc.c	(working copy)
> @@ -803,6 +803,7 @@
>          file_size = url_ftell(&s->pb);
>          url_fseek(&s->pb, 0, SEEK_SET);
>          asf_write_header1(s, file_size, data_size - asf->data_offset);
> +        url_fseek(&s->pb, file_size, SEEK_SET);
>      }
>  
>      put_flush_packet(&s->pb);

Does this fix a real problem?  I don't see how it makes any difference
as this is the last thing that happens to the file anyway.

-- 
M?ns Rullg?rd
mans at mansr.com




More information about the ffmpeg-devel mailing list