@scrypted/libav 1.0.12 → 1.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/decode.cpp +2 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scrypted/libav",
3
- "version": "1.0.12",
3
+ "version": "1.0.14",
4
4
  "dependencies": {
5
5
  "node-addon-api": "^8.1.0",
6
6
  "prebuild-install": "npm:@scrypted/prebuild-install@^7.1.8"
package/src/decode.cpp CHANGED
@@ -83,6 +83,7 @@ public:
83
83
  // Decode video frames
84
84
  while (av_read_frame(fmt_ctx_, packet) >= 0)
85
85
  {
86
+ fprintf(stdout, "read a frame\n");
86
87
  if (packet->stream_index != videoStreamIndex)
87
88
  {
88
89
  continue;
@@ -99,6 +100,7 @@ public:
99
100
  }
100
101
  av_packet_unref(packet); // Reset the packet for the next frame
101
102
  }
103
+ fprintf(stdout, "finished reading a frame\n");
102
104
 
103
105
  av_frame_free(&frame);
104
106
  av_packet_free(&packet);