]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/msrle.c
noise bitstream filter
[ffmpeg] / libavcodec / msrle.c
index 76649894aaa94164a9a765661e2c1033722c63d0..7cdbf7c774f02eaccf1b335d273e5c8dfa9e71c2 100644 (file)
@@ -14,7 +14,7 @@
  *
  * You should have received a copy of the GNU Lesser General Public
  * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
 /**
@@ -110,8 +110,8 @@ static void msrle_decode_pal4(MsrleContext *s)
                 FETCH_NEXT_STREAM_BYTE();
                 s->frame.data[0][row_ptr + pixel_ptr] = stream_byte >> 4;
                 pixel_ptr++;
-             if (i + 1 == rle_code && odd_pixel)
-                       break;
+                if (i + 1 == rle_code && odd_pixel)
+                    break;
                 if (pixel_ptr >= s->avctx->width)
                     break;
                 s->frame.data[0][row_ptr + pixel_ptr] = stream_byte & 0x0F;
@@ -254,10 +254,6 @@ static int msrle_decode_frame(AVCodecContext *avctx,
 {
     MsrleContext *s = (MsrleContext *)avctx->priv_data;
 
-       /* no supplementary picture */
-       if (buf_size == 0)
-               return 0;
-
     s->buf = buf;
     s->size = buf_size;