@scrypted/libav 1.0.16 → 1.0.18

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 +7 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scrypted/libav",
3
- "version": "1.0.16",
3
+ "version": "1.0.18",
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
@@ -93,9 +93,15 @@ public:
93
93
  result = frame;
94
94
  return;
95
95
  }
96
+ else {
97
+ fprintf(stderr, "Error while receiving a frame from the decoder\n");
98
+ }
99
+ }
100
+ else {
101
+ fprintf(stderr, "Error while sending a packet to the decoder\n");
96
102
  }
97
- av_packet_unref(packet); // Reset the packet for the next frame
98
103
  }
104
+ av_packet_unref(packet); // Reset the packet for the next frame
99
105
  }
100
106
 
101
107
  av_frame_free(&frame);