Skip to content

Instantly share code, notes, and snippets.

@rcombs

rcombs/stdin Secret

Created June 18, 2015 13:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rcombs/8ca74ca061dc8196d0f8 to your computer and use it in GitHub Desktop.
Save rcombs/8ca74ca061dc8196d0f8 to your computer and use it in GitHub Desktop.
diff --git a/libavcodec/adpcm.c b/libavcodec/adpcm.c
index 94b4de1..26d7143 100644
--- a/libavcodec/adpcm.c
+++ b/libavcodec/adpcm.c
@@ -1457,8 +1457,8 @@ static int adpcm_decode_frame(AVCodecContext *avctx, void *data,
/* Initialize the previous sample. */
for (i = 0; i < avctx->channels; i++) {
- c->status[i].sample1 = THP_GET16(gb);
- c->status[i].sample2 = THP_GET16(gb);
+ av_log(avctx, AV_LOG_DEBUG, "Calc: %x, Got: %x\n", c->status[i].sample1, THP_GET16(gb));
+ av_log(avctx, AV_LOG_DEBUG, "Calc2: %x, Got: %x\n", c->status[i].sample2, THP_GET16(gb));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment