Commit 7496d66d authored by Angie Chiang's avatar Angie Chiang
Browse files

Coding path sync: filter packets from encoder.

We're only interested in AOM_CODEC_CX_FRAME_PKT, but the encoder might
output packets from other types (e.g when CONFIG_INTERNAL_STATS).

Change-Id: I1c153ca7519067dc82cb76b131b09a537bb37f62
parent c6300aa1
......@@ -64,7 +64,14 @@ class CompressedSource {
aom_codec_encode(&enc_, &img, frame_count_++, 1, 0, 0);
aom_codec_iter_t iter = NULL;
return aom_codec_get_cx_data(&enc_, &iter);
const aom_codec_cx_pkt_t *pkt = NULL;
do {
pkt = aom_codec_get_cx_data(&enc_, &iter);
} while (pkt && pkt->kind != AOM_CODEC_CX_FRAME_PKT);
return pkt;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment