summaryrefslogtreecommitdiff
path: root/src/liana
diff options
context:
space:
mode:
authorAndrew Opalach <andrew@akon.city> 2025-09-08 18:42:54 -0400
committerAndrew Opalach <andrew@akon.city> 2025-09-08 18:42:54 -0400
commit8af27a3f6a26140ed7c1468675ee3f3ff55e0f0f (patch)
treeaa80e44c62ff5e112ff731702bc60d65a839eafd /src/liana
parentf5038bc66041ba8a721cedb125cddc342a9a9e4b (diff)
downloadcamu-8af27a3f6a26140ed7c1468675ee3f3ff55e0f0f.tar.gz
camu-8af27a3f6a26140ed7c1468675ee3f3ff55e0f0f.tar.bz2
camu-8af27a3f6a26140ed7c1468675ee3f3ff55e0f0f.zip
Comment out packet.opaque usage in codec_client
Just until I get around to reimplementing VCR_BUFFER_WHOLE_FILE. Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'src/liana')
-rw-r--r--src/liana/handlers/codec_client.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/liana/handlers/codec_client.c b/src/liana/handlers/codec_client.c
index a3614bf..c246a24 100644
--- a/src/liana/handlers/codec_client.c
+++ b/src/liana/handlers/codec_client.c
@@ -85,13 +85,14 @@ static bool codec_client_handle_packet(struct lia_client_handler *handler, struc
switch (mode) {
case CAMU_NORMAL: {
if (codec->dec) {
- if (packet->opaque) {
- success = push_packet(codec, (struct nn_buffer *)packet->opaque);
- } else {
+ // @TODO: Store pointer over r/windex (64 bits) if needed.
+ //if (packet->opaque) {
+ // success = push_packet(codec, (struct nn_buffer *)packet->opaque);
+ //} else {
struct nn_buffer buffer;
nn_packet_read_buffer(packet, &buffer);
success = push_packet(codec, &buffer);
- }
+ //}
} else {
success = true;
}
@@ -100,13 +101,13 @@ static bool codec_client_handle_packet(struct lia_client_handler *handler, struc
#ifdef CAMU_HAVE_FFMPEG
case CAMU_FFMPEG_COMPAT: {
AVPacket *pkt;
- if (packet->opaque) {
- pkt = (AVPacket *)packet->opaque;
- } else {
+ //if (packet->opaque) {
+ // pkt = (AVPacket *)packet->opaque;
+ //} else {
pkt = av_packet_alloc();
nn_packet_read_av_packet(packet, pkt);
- packet->opaque = pkt;
- }
+ // packet->opaque = pkt;
+ //}
if (codec->dec) {
success = push_av_packet(codec, pkt);
if (!success) {