[haiku-commits] Re: haiku: hrev50187 - in src: add-ons/media/plugins/ffmpeg system/runtime_loader kits/media

  • From: marcus overhagen <marcusoverhagen@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Thu, 7 Apr 2016 18:13:11 +0200

On Wed, Apr 6, 2016 at 12:41 AM, <b.vitruvio@xxxxxxxxx> wrote:


  * The ffmpeg documentation explicit forbid to write the trailer
  when the header write failed.


+       return fHeaderError == 0 ? B_OK : B_ERROR;

+       if (fHeaderError > 0) {
+               result = av_write_trailer(fContext);

Has this been tested? if 0 is B_OK, why not write trailer?

regards
Marcus

Other related posts: