Merge commit 'f8d10511fef0bb3265f2d7bdfd38f90f60731d80'
authorHendrik Leppkes <h.leppkes@gmail.com>
Tue, 10 Nov 2015 16:55:25 +0000 (17:55 +0100)
committerHendrik Leppkes <h.leppkes@gmail.com>
Tue, 10 Nov 2015 16:55:25 +0000 (17:55 +0100)
* commit 'f8d10511fef0bb3265f2d7bdfd38f90f60731d80':
  cosmetics: msnwc_tcp: Reformat

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
1  2 
libavformat/msnwc_tcp.c

@@@ -89,10 -90,10 +90,10 @@@ static int msnwc_tcp_read_header(AVForm
  
      /* Some files start with "connected\r\n\r\n".
       * So skip until we find the first byte of struct size */
-     while(avio_r8(pb) != HEADER_SIZE && !avio_feof(pb));
 -    while (avio_r8(pb) != HEADER_SIZE && !pb->eof_reached) ;
++    while(avio_r8(pb) != HEADER_SIZE && !avio_feof(pb)) ;
  
 -    if (pb->eof_reached) {
 -        av_log(ctx, AV_LOG_ERROR, "Could not find valid start.");
 +    if(avio_feof(pb)) {
 +        av_log(ctx, AV_LOG_ERROR, "Could not find valid start.\n");
          return -1;
      }