adpcm: Fix a comment in the trellis heap code
[ffmpeg.git] / libavcodec / adpcm.c
index 5e7c54f75449b3cb44bbdc2418447be032bc3f2c..1e9ab5b943e5891b2a73afd9f1e829760a5ccb07 100644 (file)
@@ -420,7 +420,7 @@ static void adpcm_compress_trellis(AVCodecContext *avctx, const short *samples,
                     u->sample1 = dec_sample;\
                     paths[u->path].nibble = nibble;\
                     paths[u->path].prev = nodes[j]->path;\
                     u->sample1 = dec_sample;\
                     paths[u->path].nibble = nibble;\
                     paths[u->path].prev = nodes[j]->path;\
-                    /* Sift the newly inserted node down in the heap to \
+                    /* Sift the newly inserted node up in the heap to \
                      * restore the heap property. */\
                     while (pos > 0) {\
                         int parent = (pos - 1) >> 1;\
                      * restore the heap property. */\
                     while (pos > 0) {\
                         int parent = (pos - 1) >> 1;\